RE: How do i get an attachment through postman?
Hi
To obtain an attachment from Business Central via Postman, perform these steps:
First, you must obtain an access token from Business Central using OAuth 2.0 authentication. See Microsoft documentation for instructions on how to obtain an access token.
Once you have obtained the access token, open Postman and create a new GET request.
In the URL field, enter the URL of the API endpoint that retrieves the attachments. For example, the URL could be api.businesscentral.dynamics.com/.../$value, where {tenant}, {companyid} and {attachmentid} are placeholders for the actual values.
On the Headers tab, add the following headers:
Authorisation: Bearer {access_token}, where {access_token} is the access token obtained in step 1.
Accept: application/octet-stream
Content type: application/octet-stream
Send the request and you should receive the attachment in the body of the response.
Note: replace {tenant}, {companyid} and {attachmentid} with the actual values of the URL.
DAniele