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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Updating Sales Order Status using REST API

(1) ShareShare
ReportReport
Posted on by 4
Hello all,
 
I'm seeking assistance for updating the Sales Order Status in Dynamics 365 Finance and Operations using the REST API. Currently, we manually navigate to the UI and click the Confirm Sales Order button. I'm exploring ways to streamline this process as part of our workflow.
 
Additionally, any insights into the functionality of the Confirm Sales Order button and how it updates the status in the background would be greatly appreciated.
 
Thank you
I have the same question (0)
  • Judy Profile Picture
    Microsoft Employee on at
    Hi, I will help move to Finance forum.
    You can try to use Patch function to change order status using the REST API.
     
    Best Regards,
    Judy
  • Suggested answer
    Martin Dráb Profile Picture
    239,647 Most Valuable Professional on at
    Confirming an order doesn't mean merely changing its status; it creates a confirmation journal (CustConfirmJour). Merely updated the status field would be wrong.
     
    If a JSON-based custom service is RESTful enough for you, you can use FormletterService, namely its postSalesOrderConfirmation operation.
     
    Another approach is using OData services and OData action. Developing such an action isn't difficult, the only problem is that you can't add OData actions through extensions. You'll need your own data entity. Confirmation posting can be done by code like this:
    SalesFormLetter_Confirm confirm = SalesFormLetter::construct(DocumentStatus::Confirmation);
    confirm.update(salesTable); 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 692

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 532 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 478

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans