Hey there,
I’ve currently got a process which works as follows:
- Trigger of a new file (pdf) in a GDrive folder
- Looks up filename in a GSheet to get an internal identifier for invoice ID
- Uses the invoice ID on the native Xero action to find it
- I want to then upload the attachment pdf to the existing invoice
I know that the native Xero integration does not support this so have used an API request webhook instead. This is successful aside from the fact that the attachment does not load / open in Xero.
I know that the native integration for creating a new invoice has the ability to upload an attachment as a “file” dimension. But am struggling to figure out how to do this with a custom API request.
I’ve read the potential to convert the pdf into “Bytes” and by pulling a GET request on an existing invoice with an attachment, I can see this process.
But any help is appreciated as to how best to proceed / if I need to convert the pdf to something for it to load appropriately.
Thanks!