Check this: https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_attachment_get
Is it possible to use an API call and download a file from the document attachment table?
2 Responses
Leave a Reply
You must be logged in to post a comment.
For a little more context this is on the Items page, since I am not seeing Items on this page (https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_attachment) is it safe to say attachments for documents are handled differently?
You need to get the attachment ID first (from the attachment table/api, then you can use the above API to download an attachment.