web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to cancel a purchase order using Logic Apps' REST API?

(0) ShareShare
ReportReport
Posted on by 5

Hi,

How do I cancel a purchase order in F&O using REST API? Provided that new app registration has already been set up. Can someone put a step-by-step guide? 

I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    300,716 Super User 2025 Season 2 on at
    RE: How to cancel F&O Purchase Order in D365 F&O using Logic Apps' REST API?

    Hi jgfernandez80,

    Functionally, you can use the deliver remainder which sets the remaining quantity to receive to zero. I'm not sure if the standard data entities do support maintaining the fields on the purchase order. If so, you can update the line with remaining quantity set to zero, otherwise, you would need to extend the data entity or create a new one as a customization.

  • Hana Xue Profile Picture
    Microsoft Employee on at
    RE: How to cancel F&O Purchase Order in D365 F&O using Logic Apps' REST API?

    Hi,

    Here are the links about Azure logic apps rest API, you can view them.

    Azure Logic Apps REST API | Microsoft Learn

    Overview - Azure Logic Apps | Microsoft Learn

    Best Regards,

    Hana

  • Suggested answer
    jgfernandez80 Profile Picture
    5 on at
    RE: How to cancel F&O Purchase Order in D365 F&O using Logic Apps' REST API?

    Hi Andre,

    As for extending the data entity or customization, are you referring of doing something like the link below?

    How to Solve “update not allowed for field” Error with Data Entries in Dynamics 365 Finance and Operations | Stoneridge Software

    If so, I guess I would just update the quantities instead of the PO status.

  • André Arnaud de Calavon Profile Picture
    300,716 Super User 2025 Season 2 on at
    RE: How to cancel F&O Purchase Order in D365 F&O using Logic Apps' REST API?

    Hi jgfernandez80,

    The blog you shared is one use case to extend a data entity. You can also add additional fields, virtual fields and coding. If you change the original order quantity, the status of the order will remain on open order with quantity 0. To get the canceled state, the remaining quantity needs to be set to 0.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 563 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans