Microsoft Dynamics Search for Order by Order Number

Looks up a specific sales order in Microsoft Dynamics 365 by its order number and returns it together with its order lines. Use it when the order number is already known.

What it does

  • Authenticates with Microsoft Dynamics using the provided credentials.
  • Retrieves the sales order matching the given order number.
  • Adds the order lines (the individual items on the order) to the result.
  • Optionally scopes the search to a single company when an Area ID is provided, otherwise searches across companies.

Inputs

NameTypeDescription
Order NumberStringOrder Number for searching
ResourceStringMicrosoft Dynamics resource e.g. https://{domain}.operations.dynamics.com
Tenant IDStringMicrosoft Dynamics tenant id
Client IDString (sensitive)Microsoft Dynamics client id
Client SecretString (sensitive)Microsoft Dynamics client secret
Area IDOptional StringArea ID

Outputs

NameTypeDescription
SuccessBooleanWhether order was found or not
OrderObjectOrder

Notes

  • Area ID maps to the Dynamics dataAreaId (the company/legal entity). When set, the search is restricted to that company; when left empty, all companies are searched.
  • Resource is the base URL of your Dynamics environment, for example https://{domain}.operations.dynamics.com.

API reference