Skip to main content

Notifications

Announcements

No record found.

Business Central forum

Need to Access Purchase Order Details through ODATA (Web API)

Posted on by

I am very new to Dynamics 365. I have a requirement to  get the purchase order Header and items details from  D365 BC through API for the 3rd part application integration.  In the 3rd party application once the invoice is being process , then I have to post the PO Header along with invoice #. The challenge that I am having now that I am not able to fine the Purchase order related APIs  where as I am able to get and post other APIs (Ex:Vendors,etc https://api.businesscentral.dynamics.com/v1.0/Comapny.com/api/beta/companies(7192822e-6ea1-49ab-b8df-288cf9d1cd63)/Vendors ). Is there a specific way to access the PO related APIs. Please help.

Thanks

Arun

Categories:
  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Need to Access Purchase Order Details through ODATA (Web API)

    Why not using web services (SOAP or Odata)? You have only to publish the Purchase Order page and you've all the methods for doing what you need.

  • Verified answer
    RE: Need to Access Purchase Order Details through ODATA (Web API)

    Thanks for the reply. The purchase order (Entity ) API itself not exposed in BC, in this case , do we have other way to update the PO related entities ?

  • Verified answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: Need to Access Purchase Order Details through ODATA (Web API)

    You can use the expand feature to have header and Lines in a single call.

    Something like:

    api.businesscentral.dynamics.com/.../salesInvoices(034a122b-962b-4007-b3d1-00718c2f21ff)$expand=salesInvoiceLines

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans