I am trying to attach a PDF file to a Purchase Invoice.
I am able to create the attachment and get a valid response with the etag, etc.
I am not however finding any info on the format of the Patch call to update the attachment and provide the attachment content.
In Postman, I have these headers:
and the body looks like this now:
I have also tried sending the body as JSON with both "Content", "attachmentContent" keys and also tried both with and without the base64 prefix "data:application/pdf;base64,".
The file is created in Dynamics but it is a text file of the body verbatim so it isn't being converted from Base64 to PDF.
Anyone that might have worked with this and can help is appreciated.