Hi Experts,
I am facing an issue while update any field of Sales Order Line. Below are the details.
URL: api.businesscentral.dynamics.com/.../{SandBox Name}/api/v2.0/companies(Company Id)/salesOrders(SalesOrder ID)?$expand=salesOrderLines
with headers : Content-Type: Application/son, if-match: *
Body :
hello, confirming the above.
happy to have been of help.
greetings
Don't forget to help the community by Verifying the answer and Like it if your question has been answered. It will let others know that the topic has verified answer.
Thanks & Regards,
Gian
thank you for all your responses.
what i found with all my search that is impossible to update sales orders and sales line in the some time. so they updated separately with
URL: api.businesscentral.dynamics.com/.../{SandBox Name}/api/v2.0/companies(Company Id)/salesOrderLines(SalesOrderLineID)
for sales lines
and
URL: api.businesscentral.dynamics.com/.../{SandBox Name}/api/v2.0/companies(Company Id)/salesOrders(SalesOrder ID)
for sales orders
I believe that the standard or custom copy of the standard cannot be made.
You probably need a more structured code to take in all the information from the query url
hello,
URL: api.businesscentral.dynamics.com/.../{SandBox Name}/api/v2.0/companies(Company Id)/salesOrderLines(SalesOrderLineID)
this is work for sales line but what i want is to update sales orders and sales line in the some time
so i try this
URL: api.businesscentral.dynamics.com/.../{SandBox Name}/api/v2.0/companies(Company Id)/salesOrders(SalesOrder ID)/salesOrderLines(SalesOrderLineID)
but it give me an error
{
"error": {
"code": "BadRequest",
"message": "Invalid Request Body CorrelationId: 5647f519-9f22-4b87-bb30-2ef526b359ab."
}
}
Hi Khadija,
this blog post might help you www.kauffmann.nl/.../
also, check out Microsofts documentation learn.microsoft.com/.../dynamics_salesorderline_update
Regards
hello, the correct call is this:
Method: PATCH
URL: https://api.businesscentral.dynamics.com/.../{SandBox Name}/api/v2.0/companies(Company Id)/salesOrders(SalesOrder ID)/salesOrderLines(SalesOrderLineID)
or
URL: api.businesscentral.dynamics.com/.../{SandBox Name}/api/v2.0/companies(Company Id)/salesOrderLines(SalesOrderLineID)
Headers: Content-Type: Application/son, if-match: *
Body :
Don't forget to help the community by Verifying the answer and Like it if your question has been answered. It will let others know that the topic has verified answer.
Thanks & Regards,
Gian
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,104 Most Valuable Professional
nmaenpaa 101,156