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 :
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,363 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

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 296

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 234 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 145 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans