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)
Syntax
'Declaration
Protected Function GetOrders ( _
request As GetOrdersServiceRequest _
) As GetOrdersServiceResponse
'Usage
Dim request As GetOrdersServiceRequest
Dim returnValue As GetOrdersServiceResponse
returnValue = Me.GetOrders(request)
protected GetOrdersServiceResponse GetOrders(
GetOrdersServiceRequest request
)
protected:
GetOrdersServiceResponse^ GetOrders(
GetOrdersServiceRequest^ request
)
Parameters
Return Value
Type: Microsoft.Dynamics.Commerce.Runtime.Services.Messages.GetOrdersServiceResponse
GetOrdersServiceResponse object.
Remarks
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.