Skip to main content

Notifications

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

OData Post Attachment

(1) ShareShare
ReportReport
Posted on by 15

Hi all,

I am attempting to use the OData call: ODataV4/Company('CRONUS%20Canada%2C%20Inc.')/AttachedDocuments to POST an attachment to a sales order. I am able to use a GET request and retrieve a PDF document that I have manually attached. I am finding that there is no documentation on how to use OData calls to POST attachments to a sales order or other similar document type.

Any help would be amazing. However, please don't link me to Business Centrals V2.0 API or V1.0 API. I would like to use the OData calls.

-Conor 

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: OData Post Attachment

    If you can wait you can adopt this as standard in October: docs.microsoft.com/.../power-apps-power-automate-support-document-attachments

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: OData Post Attachment

    The standard api pages use the incoming document feature not attachments. So no it’ll need development. If you’re happy to use incoming documents check this blog for tips: joshanglesea.wordpress.com/.../

  • Conor4C Profile Picture
    Conor4C 15 on at
    RE: OData Post Attachment

    If I want to use the V2.0 API or V1.0 API would this be possible to do without development?

  • Suggested answer
    JAngle Profile Picture
    JAngle 33,159 on at
    RE: OData Post Attachment

    One of these two resources might help. Development will be needed here as attachments need to use recrefs to assign a file. Pages for Odata use tables, so not the same thing.

    www.kauffmann.nl/.../

    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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans