web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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,600 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans