Skip to main content

Notifications

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? 

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,162 Super User 2025 Season 1 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.

  • Suggested answer
    jgfernandez80 Profile Picture
    jgfernandez80 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.

  • Hana Xue Profile Picture
    Hana Xue 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

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,162 Super User 2025 Season 1 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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans