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...
Answered

Sales order Get API for single sales order-Error

(0) ShareShare
ReportReport
Posted on by 120

Hi,

I am getting all sales order data using below URL, and how to get single sales order data using Get API

api.businesscentral.dynamics.com/.../Company('CRONUS USA, Inc.')/SalesOrder

If i give URL like

api.businesscentral.dynamics.com/.../systemID/Sandbox/ODataV4/Company('CRONUS USA, Inc.')/SalesOrder('S-100001'), i am getting below error

code""BadRequest_NotFound",
        "message""The number of keys specified in the URI does not match number of key properties for the resource 'NAV.SalesOrder'
I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 Moderator on at

    Hi,

    Can you please please put the filters at the end of your api and check ?

    ?$filters=No_="<your so no.>”

  • Suggested answer
    JAngle Profile Picture
    133 on at

    Maybe the v2 api page is a good idea to use. Will avoid the need to pass in primary key values which seems to be the OData pages issue: docs.microsoft.com/.../dynamics_salesorder_get

  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    Hi, you can using "id" (keys) or add filters.

    For example,

    All Sales orders.

    api.businesscentral.dynamics.com/.../salesOrders

    pastedimage1654218484193v1.png

    Using id:

    api.businesscentral.dynamics.com/.../salesOrders(5554a3c6-7dd6-ec11-8e7e-000d3a50628c)

    pastedimage1654218507807v2.png

    Using filter:

    api.businesscentral.dynamics.com/.../salesOrders eq '101006'

    pastedimage1654218573495v3.png

    More details abou filter in APIs: https://yzhums.com/6117/#toc8

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    raobc@bnopentext.onmicrosoft.com Profile Picture
    120 on at

    Issue is resolved,

    i used as below

    api.businesscentral.dynamics.com/.../Company('CRONUS USA, Inc.')/SalesOrder('Order','S-ORD101001')

  • Suggested answer
    raobc@bnopentext.onmicrosoft.com Profile Picture
    120 on at

    issue resolved

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 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans