SetStateSalesOrder Message

banner art

Sets the state of a sales order (order).

The relevant classes are specified in the following table.

Type Class
Request SetStateSalesOrderRequest
Response SetStateSalesOrderResponse
Entity salesorder


The possible states are defined in the SalesOrderState enumeration. To perform this action, the caller access rights on the entity instance specified in the request class. For a list of required privileges, see SetState Privileges.

This message updates the salesorder fields statuscode and statecode.

You can not use this message to set the state of an order to Invoiced. You must use the message ConvertSalesOrderToInvoice.


For an example of how to use this message, see SetStateAccount.

Related Topics

CrmService Messages


© 2007 Microsoft Corporation. All rights reserved.