Skip to main content

Notifications

Announcements

No record found.

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

Is it possible to create purchase order receipts via Postman?

(0) ShareShare
ReportReport
Posted on by 45

I didn't find endpoint to create purchase orders in Microsoft Dynamics 365 Business Central API doc (https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_purchasereceipt). When I tried to create a purchase order receipt via postman I'm getting the below in response 

"error": {
        "code": "BadRequest_MethodNotAllowed",
        "message": "Entity does not support insert.  CorrelationId:  4dab4377-3e2c-4c58-81cb-1413207ad7c1."
    }
Please let know if there a way to make this endpoint work.
Thank you!
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,848 Super User 2024 Season 2 on at
    RE: Is it possible to create purchase order receipts via Postman?

    Hi, Inge and People Eater are right.

    More Details:

    Creating and Interacting with an OData V4 Bound Action

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-creating-and-interacting-with-odatav4-bound-action

  • Suggested answer
    Govinda Kumar Profile Picture
    Govinda Kumar 2,198 Super User 2024 Season 1 on at
    RE: Is it possible to create purchase order receipts via Postman?

    Hi,

    If you want to post the purchase order via postman, you can create a custom web service for your codeunit and hit the procedure that calls the 'Purch.-Post' codeunit. You can also use that web service in your power automate http request to trigger the posting of the purchase order.

    Regards

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 993 Super User 2024 Season 1 on at
    RE: Is it possible to create purchase order receipts via Postman?

    You need to round the receive bound action as described here if you are using the standard API

    learn.microsoft.com/.../dynamics_purchaseorder

  • AAndras Profile Picture
    AAndras on at
    RE: Is it possible to create purchase order receipts via Postman?

    yzhums pls see my question above

  • AAndras Profile Picture
    AAndras on at
    RE: Is it possible to create purchase order receipts via Postman?

    Dear Zhu,

    I havea a similar issue : i want to post a PO only for Receipt (without Invoice) from Power Automate using your way.

    pastedimage1679739509094v1.png

    What is the action what I need to run in API?

    PS I am really thanksful for your videos as I could learn many useful tricks from them.  

  • Suggested answer
    JAngle Profile Picture
    JAngle 46 on at
    RE: Is it possible to create purchase order receipts via Postman?

    Try this repo: github.com/.../PostOrdersWebService

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,848 Super User 2024 Season 2 on at
    RE: Is it possible to create purchase order receipts via Postman?

    Hi, I checked all the standard APIs, as shown below, you can create purchaseReceipts and purchaseReceiptLines through API, but not from Purchase Order.

    pastedimage1650419818748v1.png

    pastedimage1650419835644v2.png

    If you really need to create, you need a develop a new Custom API.

    Creating and Interacting with an OData V4 Bound Action

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-creating-and-interacting-with-odatav4-bound-action

    Or action in API

    https://yzhums.com/20111/

    PS: API page type cannot be extended by creating a page extension object. Instead, you must create a new API by adding a page object.

    More details: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-api-pagetype

    pastedimage1650420238980v3.png

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Vaishnavi J Profile Picture
    Vaishnavi J 3,056 on at
    RE: Is it possible to create purchase order receipts via Postman?

    Hi,

    You can only get the Posted Purchase receipt.

    You cannot insert data in that entity since it is posted document.

    You can refer the below link for Purchase Order API in business central

    docs.microsoft.com/.../dynamics_purchaseorder

    If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans