I think the problem is how to reference the output of my code block in the query parameters... but I'm not sure what else to put in there. Do I need to return a fileReader or something? I'm somewhat unfamiliar with working with files in Javascript...
I get a temporary link from one system, and when I run a GET command on that link, I get a base64Binary value back. Initially I tried to pass that directly into the multipart/form-data request in a different system to add the file as an attachment to an invoice, but it gives me a vague 500 error. I'm assuming it wants a different type of format than base64?
In the preview window, it just looks like an empty object, but that's sort of what I would expect when the object is a large file... I did console.log out the size and the type, so it would appear that it's returning a pdf file...
But then if I put that into the API, I get that original message I posted about:
I'm also reaching out to the API support for this system, but the're slow to get back to me, so I was hoping someone here might have some experience with things like this and how they solved it in Retool. Thanks!