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 :
Small and medium business | Business Central, N...
Suggested Answer

Update Sales Order Line using the standard API

(0) ShareShare
ReportReport
Posted on by 170

Hi Experts,

Hope all are doing well.

I am facing an issue while update any field such as Ship-to Quantity or Description of Sales Order Line. Below are the detals.

URL: api.businesscentral.dynamics.com/.../{SandBox Name}/api/v1.0/companies(Company Id)/salesOrders(SalesOrder ID)/salesOrderLines(Sales Order Line Id)

BodyJson:

{
"description": "Test"
}

Error:

{
    "error": {
        "code""BadRequest_NotFound",
        "message""')' or ',' expected at position 5 in '(0e63e6a2-dc77-ea11-a813-000d3a871ef9-10000)'.  CorrelationId:  f3027dc0-acd0-409a-92d3-ac0c71743174."
    }
}
 
Did anyone face this before?
Thanks in advance.

I have the same question (0)
  • Community Member Profile Picture
    on at

    If you're unable to say what the code should do, you're not in a position to start coding. First, think about what you're trying to achieve from the functional point of view. If you don't know, go back to your functional consultant or whoever is responsible for these things on your project.

    When you know what you want to achieve, think about how. What should happen in the application at what time, what should be atomic operations, which objects are involved, which pieces of logic don't exist yet and so on.

    Only when you know what needs to be changed in the application, start writing code (if any is needed in the first place). Cover what you can and when you get stuck, come here and explain your problem. At the point, you'll be able to explain it.

    Admin

    Apps4rent | o365cloudexperts

  • Sunil1991 Profile Picture
    170 on at

    Hi Lewis-H,

    The scenario is that, i have a third party application from which i push the sales order data to Business Central to create sales order. I have create the sales order successfully in business central using the standard APIs.

    Now, i want to post a partial shipment and invoice for that sales order through the APIs. To do so, i need to update the shipQuantity (Ship-to Quantity) on sales order line. So, when i trying to update it, is giving me the error i mentioned.

    Thanks,

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    the json code should look like:

    json.png_2D00_320x240.png

    beware of the correct usage of the braces.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans