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

Notifications

Announcements

No record found.

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
    237,807 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

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 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans