How can you send multiple JSON Request to ODATA endpoint of Dynamics 365 Finance as I get the following error stating Content-Type must be multipart/mixed? Is this supported?
Note: When try to send request based on this example, it works. However I am looking at JSON Request (more than 1 record)
If yes, how do we send JSON batch request body to D365 Finance? Any pointers will be really helpful.
Batch requests for Odata in Postman are not straightforward
Check this post for a sample Insert multiple records in single request using Odata from Postman - Dynamics 365 Finance & Operations | nuxulu.com
The example shared is more of $batch request with multipart/mixed Content-Type. I need to understand how to parse multiple records as JSON.
Typically example is the way output is rendered when making READ request. Similarly how can we do similar for CREATE request for pushing more than 1 records as JSON format?
The OData protocol for multiple records must be submitted in a batch or record by record ( multiple requets ). For batch is a mixed content between json and request header
Okay so we can't send the way I described? It's not supported?
From Odata spec : docs.oasis-open.org/.../odata-v4.01-part1-protocol.html
"Batch requests allow grouping multiple individual requests into a single HTTP request payload. An individual request in the context of a batch request is a Metadata Request, Data Request, Data Modification Request"
An insert is a Data Modification Request.
So, you need to batch those requests in a single batch to join multiple requets.
It's via batch. Don't want to perform record by record.
Batching Microsoft Graph API Requests with JSON Batching: blog.kloud.com.au/.../
This typically allows JSON Batching using GRAPH API; In similar lines can it be done on D365 Finance or is it the only way as per your blog is what I would like to know.
A Batch request It's a single HTTP request with all the records. You need is to group multple inserts in a single batch request.
We cannot work with JSON Batching as it's new to OData 4.0.1.
Only ODATA v4.0 specification for batch messages only supports multipart/mixed requests with plain text body.
Hi Santosh,
are you able to post multiple records with json nody request instead of text as highlighted below
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 Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 707 Most Valuable Professional
André Arnaud de Cal... 618 Super User 2025 Season 2
CU05031448-0 600