web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

how to update the attachment in dynamic 365 Business Central

(0) ShareShare
ReportReport
Posted on by

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

  • Suggested answer
    JAngle Profile Picture
    159 on at

    A98A488B_2D00_9507_2D00_40A5_2D00_96D8_2D00_242DC47C8C20.jpeg

    Here is a pdf I POST using Power Automate. The header values need altering to handle a body of a different data type

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 741 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 514 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 336 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans