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 :
Supply chain | Supply Chain Management, Commerce
Unanswered

Rest API - Sales Order does not fully commit

(0) ShareShare
ReportReport
Posted on by 5

Using REST API to Post a Sales Order. For the line item if there is an error - a cross table lookup for example, the API returns an error (expected). My expectation is that the order would not be posted. However the order is created, with the order header details and the errored line item is not created. So here have a partial order! Again my expectation is that either the order is valid and commits or if there is an error the order would not be created at all. Is this a know behaviour / does some configuration setting need to be adjusted?

I have the same question (0)
  • WillWU Profile Picture
    22,361 on at

    Hi Bruce G,

    What REST api are you using now?

    D365FO offers an RESTful service, please check OData : docs.microsoft.com/.../odata.

    I think you could finish your work by SalesOrderHeaderV2Entity and SalesOrderLineV2Entity.

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 > Supply chain | Supply Chain Management, Commerce

#1
Laurens vd Tang Profile Picture

Laurens vd Tang 299 Super User 2025 Season 2

#2
Siv Sagar Profile Picture

Siv Sagar 183 Super User 2025 Season 2

#3
André Arnaud de Calavon Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans