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?
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.
Hi Andre,
As for extending the data entity or customization, are you referring of doing something like the link below?
If so, I guess I would just update the quantities instead of the PO status.
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
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.
André Arnaud de Cal...
292,162
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156