
Hi there, is it possible to create two records in one web service call against an OData web service in NAV?
I would like to create more than one customer in one call, but I am not sure about the correct JSON structure to create both at the same time.
If one client is:
{ "Name":"Customer1"}
Two clients should be something like:
[{ "Name":"Customer1"},{"Name":"Customer2"}]
but the above is not working and I am not sure the correct format.
Could you help?
Regards,
Carlos
*This post is locked for comments
I have the same question (0)It doesn't support this.
Option if you want to accept Json Array, you can create your own web service . This web service need to call dynamics nav OData web service in the background for each data in array to insert.
another option to send in one call is using odata batch request, i never tried this.
You may look on below :
https://www.odata.org/documentation/odata-version-3-0/batch-processing/
https://community.dynamics.com/nav/f/microsoft-dynamics-nav-forum/290071/web-api-odata-batch-request