Skip to main content

Notifications

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

How do i get an attachment through postman?

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 73,472 Super User 2024 Season 2 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,272 Super User 2024 Season 1 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 501 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans