Hello,
I am referring to this Documentation about batch requests. Can we create multiple records that are related to different entities in the same request?
For example: Create the Sales Order and Sale Order Products.
Thank You,
Eman
Hello Eman,
Check this - docs.microsoft.com/.../create-entity-web-api
Hi,
Thank yo for your query. If you mean to create Sales order and related products in one go, that will not work. Sales Order header must be created before order products. That means, your batch must have multiple change sets (one for the order header and one for lines).
In a batch we can have multiple change sets and read operations, your batch structure would look like this:
Here is a very nice post for your reference:
Execute Web API Batch Operations Without ExecuteMultiple – Implementing Tae of <T> (taerimhan.com)
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Rishabh Kanaskar 258
MVP-Daniyal Khaleel 178
Tom_Gioielli 142 Super User 2025 Season 2