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 :
Microsoft Dynamics NAV (Archived)

OData Web Service Create two records in one call

(0) ShareShare
ReportReport
Posted on by 171

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)
  • Verified answer
    I Gusti Made Ari Profile Picture
    3,608 on at

    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

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

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans