Microsoft Dynamics Search for Order by Email
Finds a customer's most recent sales order in Microsoft Dynamics 365 by email address and returns it together with its order lines. Use it in order tracking or returns flows where the customer is identified by email.
What it does
- Authenticates with Microsoft Dynamics using the provided credentials.
- Retrieves the most recent sales order matching the email address.
- Adds the order lines (the individual items on the order) to the result.
- Reports whether an order was found through the
Successflag.
Inputs
| Name | Type | Description |
|---|---|---|
| String | Email for searching | |
| Resource | String | Microsoft Dynamics resource e.g. https://{domain}.operations.dynamics.com |
| Tenant ID | String | Microsoft Dynamics tenant id |
| Client ID | String (sensitive) | Microsoft Dynamics client id |
| Client Secret | String (sensitive) | Microsoft Dynamics client secret |
Outputs
| Name | Type | Description |
|---|---|---|
| Success | Boolean | Whether order was found or not |
| Order | Object | Order |
Notes
- Only the single most recent order for the email is returned, ordered by creation date.
Resourceis the base URL of your Dynamics environment, for examplehttps://{domain}.operations.dynamics.com.