SetStateContract Message (CrmService)
[Applies to: Microsoft Dynamics CRM 4.0]
|Works for all deployment types||Works online and offline|
Sets the state of a contract.
The relevant classes are specified in the following table.
The possible states are defined in the ContractState enumeration. To perform this action, the caller must have access rights on the entity instance specified in the request class. For a list of required privileges, see SetState Privileges.
To set the state of a contract to Invoiced, the following must be true:
- The properties billtoaddress and serviceaddress must contain values.
- The properties customerid and billingcustomerid must contain values.
- The contract must have line items. This means that there is at least one contractdetail instance for this contractid.
For an example of how to use this message, see SetStateAccount.
© 2010 Microsoft Corporation. All rights reserved.