
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?
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.