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 :
Finance | Project Operations, Human Resources, ...
Answered

CRUD operation with Multiple records in ODATA

(3) ShareShare
ReportReport
Posted on by 306
Dear team,
 
Is it possible to perform CRUD operation in entity for multiple records through ODATA?
 
Please give me the thoughts. thanks!
Categories:
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    239,647 Most Valuable Professional on at
    Yes, OData supports it by allowing you to group multiple operations in a single HTTP request. Here is a link to the relevant part of OData documentation.
  • CU10121822-0 Profile Picture
    306 on at
    Thanks Martin, for the reply...
     
    I searched in google as well. I have found like
     
    In D365FO, OData indeed supports grouping multiple operations into a single HTTP request through a feature called batch requests. 
    Batch requests allow us to combine multiple queries and CUD (create, update, delete) operations into one request to the D365FO OData endpoint. This is achieved by sending a single POST request to the main OData endpoint (/data/$batch) with a specific multipart/mixed payload that delineates the individual operations .
    for example -
    POST .../data/$batch HTTP/1.1
    Content-Type: multipart/mixed; boundary=batch_boundary
     
    --batch_boundary
    Content-Type: application/http
    Content-Transfer-Encoding: binary
    POST .../data/Customers V1 HTTP/1.1
    Content-Type: application/json
    Accept: application/json
    Prefer: return=representation
    { "CustomerAccount": "CUST001", "Name": "New Customer" }
     
    --batch_boundary
    Content-Type: application/http
    Content-Transfer-Encoding: binary
    POST .../data/SalesOrderHeaders V1 HTTP/1.1
    Content-Type: application/json
    Accept: application/json
    Prefer: return=representation
    { "CustomerAccount": "CUST001", "dataAreaId": "usmf", "DeliveryDate": "2026-01-01" }
     
    --batch_boundary--
     
    Is it something I need to write code for multiple records operation in ODATA?   Am I correct?
     
  • Martin Dráb Profile Picture
    239,647 Most Valuable Professional on at
    You need to make the HTTP request. You don't have to do it from code - for example, you can write it in Postman.
     
    But if you want to do it in code, they you obviously need to create the code doing so. You can create the raw HTTP request on your own, but you can utilize various OData libraries.
  • CU10121822-0 Profile Picture
    306 on at
    Okay Martin, could you please give me an example with Postman with multiple records in https call . Sorry, not understand how to start with. 
    Kindly give me an example , will follow it.
     
    thanks!
  • Verified answer
    Martin Dráb Profile Picture
    239,647 Most Valuable Professional on at
    You've posted an example above.
     
  • CU10121822-0 Profile Picture
    306 on at
    Thanks Martin,

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

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 694

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 584 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 518

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans