SetStateContract Message

banner art

Sets the state of a contract.

The relevant classes are specified in the following table.

Type Class
Request SetStateContractRequest
Response SetStateContractResponse
Entity contract


The possible states are defined in the ContractState 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 contract fields statuscode and statecode.

To set the state of a contract to Invoiced, the following must be true:


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

Related Topics

CrmService Messages


© 2007 Microsoft Corporation. All rights reserved.