GetOrders Method

Get sales orders using the request criteria.

Namespace:  Microsoft.Dynamics.Commerce.Runtime.Services
Assembly:  Microsoft.Dynamics.Commerce.Runtime.Services (in Microsoft.Dynamics.Commerce.Runtime.Services.dll)

protected GetOrdersServiceResponse GetOrders(
	GetOrdersServiceRequest request
)

Return Value

Type: Microsoft.Dynamics.Commerce.Runtime.Services.Messages.GetOrdersServiceResponse
GetOrdersServiceResponse object.

When an ID for the sales order is specified as part of the request, this takes precedence over the customer ID. If there is not sales ID or channelreference ID paraemter passed in and only the customer ID is passed in then the orders for that customer are returned.

Community Additions

Show: