Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Single API call for multiple purchase/sale lines

Posted on by 5
How do we create a single post call in json for multiple purchase/sales lines (to a single header) to the API at once?
Couldn't find any examples online of multiple lines, just a single line
  • Charan_12 Profile Picture
    Charan_12 115 on at
    RE: Single API call for multiple purchase/sale lines

    Hello i have been able to create a Sale Header and multiple Sale Lines in one post request. But I need to be able to add multiple sales lines to an existing order.  I have managed to add a single line to a existing order  anyone now if its possible to add multiple?

  • Suggested answer
    Genie Cetas Profile Picture
    Genie Cetas 472 on at
    RE: Single API call for multiple purchase/sale lines

    Hi,

    Yes, It is possible to insert sales/purchase order and lines all at single post call using deep insert.

    For more information about Deep Insert : 

    https://docs.microsoft.com/en-us/dynamics-nav/api-reference/v1.0/dynamics-rate-limits

    https://www.kauffmann.nl/2020/05/05/deep-insert-with-business-central-apis/

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans