Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

How do i get an attachment through postman?

(0) ShareShare
ReportReport
Posted on by 57

I am trying to GET an attachment from Business Central through postman.

  • se23 Profile Picture
    se23 57 on at
    RE: How do i get an attachment through postman?

    can you please give me a get example

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 77,855 Super User 2025 Season 1 on at
    RE: How do i get an attachment through postman?

    Hi, just add a new solution.
    Hope the following can give you some new hints.

    Business Central 2022 wave 2 (BC21) new features: Power Apps and Power Automate support for media/image & document attachments

    https://yzhums.com/33436/

    Thanks.

    ZHU

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,274 Moderator on at
    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

  • Hein Kruger Profile Picture
    Hein Kruger 511 on at
    RE: How do i get an attachment through postman?

    Hi,

    Here is link that has a similar question.

    community.dynamics.com/.../api-attachments

    joshanglesea.wordpress.com/.../

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,468 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,289 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans