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

Standard Sales Order API returns incorrect response

(0) ShareShare
ReportReport
Posted on by 35

[View:/cfs-file/__key/communityserver-discussions-components-files/758/Incorrect_5F00_SO_5F00_Response_5F00_BC.json:320:240]

Hi All,

The standard Salesorder API is returning an incorrect response with duplicate data along with incorrect ordering than what is requested in the query parameter

https://api.businesscentral.dynamics.com/v2.0/Production/api/v2.0/companies(c444da1c-c2b7-4e53-80ce-e3ecb21de4dc)/salesOrders?$filter=lastModifiedDateTime ge 2023-02-09T09:35:19Z&$orderby=lastModifiedDateTime+asc&$top=1000&$skip=0&$expand=salesOrderLines($filter=lineType eq 'Comment' or lineType eq 'Item' or lineType eq 'Account';$orderby=sequence)

I noticed that this behavior only happens in a handful of times a day. I tried sending the same request via the postman a few times continually, and to my surprise the response was correct now. Seems to have something with caching I think.

Response is attached for reference.

Have anyone experienced this issue as well?

Does anyone have thoughts on it?


  • Suggested answer
    Andy Sather Profile Picture
    Microsoft Employee on at

    Hello,

    If you don't get further responses to this issue, you may want to raise a support request to Microsoft support via your CSP / Partner.

  • Suggested answer
    DAnny3211 Profile Picture
    11,423 Super User 2026 Season 1 on at

    hi

    Exactly compare the postman calls with those of BC via the postman console, also analyse the header.

    postman is more powerful in this case, it could be some character also in the url that bc is not resolving correctly, while postman is.

    DAniele

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 757 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 451 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 391 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans