Personalized Community is here!
Quickly customize your community to find the content you seek.
Latest TechTalk Videos
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I am using Postman to create records in D365 via Odata.
I am using "LedgerJournalHeaders" data entity to create a new journal header in D365.
When I pass below message, the system successfully creates a Ledger journal record in D65.
However, Is there any way by which I can pass multiple records as a part of a single request to create multiple records in D365.
I have tried few options, but I am getting "400 Bad request" error.
What's the best way to create multiple records via OData in a single request using Postman?
I think its not possible to create multiple records in a single request to the OData services. OData is based on REST, and it supports atomic transactions.
So my suggestion is, for each record creation in D365, you have to call the OData services; so there will now be multiple OData calls.
Thanks for your response Sagnik. I was just hoping to get a better way to insert multiple records in a single call.
I will probably go with Package/File API option then for mutiple inserts.
My understanding is Odata is not suitable for large volume of data anyway.
I had to implement similar features and ended up send the data as string and parse at the custom function in the data entity.
It worked fine but I am not sure why odata doesn't support multiple items.
Hi Mahesh. you can insert multiple records as single atomic unit (same changeset) using OData via .Net, check the link below for details. I've never tried do this via Postman but I believe you can build your sample code, debug and understand how the compiler is posting the request and just replicate it in Postman by using the same payload.
What you can do to achieve your requirement, to create custom web services and pass the collection of object to the services as parameter and handle it on AX side.
Yes, It can be done by using Batch Odata, testing with Postman and I made a post for this particular topic, please check it here nuxulu.com/.../Insert-multiple-records-in-single-request-using-Odata-from-Postman.html
You can write a custom service which should take a list object and then you can call it. Also you can use recurring data package integration.
It is possible to have multiple requests in single transaction. Refer docs.microsoft.com/.../odata
Business Applications communities