I have successfully attached the file name in the Incoming Document of the purchase invoice In dynamic 365 Business Central using "https://{businesscentralPrefix}/api/v1.0/companies({id})/attachments" this Odata Service. after that to update the content of the file I need to call PATCH command Using below URL "https://api.businesscentral.dynamics.com/v2.0/<tenantID>/production/api/v1.0/companies(<companyID>)/attachments(parentId=<PurchaseInvoiceID>,id=<IDfromPOSTresponse>)/content" and send the attachment file itself in the request body .
please guide me on how to send attachment files in the request body.
I have refer the documents given below link.
docs.microsoft.com/.../dynamics_attachment_patch
thanks in advance

Report
All responses (
Answers (