Contract entity messages and methods
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
A contract is an agreement to provide customer service support during specified coverage dates or for a specified number of cases or length of time. When customers contact customer service, the level of support they receive is determined by their contract.
The schema name for this entity is Contract. To view the entity metadata for your organization, install the Metadata Browser solution described in Browse the metadata for your organization. You can also view the metadata for an uncustomized organization in the Excel file called EntityMetadata.xlsx included in the top-level folder of the SDK download.
The following table describes the messages for this entity, which you use with the IOrganizationService.Execute method.
Message |
Description |
---|---|
Assigns a contract to another user or team. |
|
Cancels a contract. |
|
Copies a contract. |
|
Creates a contract. You can also call the IOrganizationService.Create method. |
|
Deletes a contract. You can also call the IOrganizationService.Delete method. |
|
Shares a contract with another security principal (user or team). |
|
Changes the access rights for a contract previously shared with another security principal (user or team). |
|
Renews a contract. |
|
Retrieves a contract. You can also call the IOrganizationService.Retrieve method. |
|
Retrieves a collection of contracts. You can also call the IOrganizationService.RetrieveMultiple method. |
|
Retrieves the access the specified security principal (user or team) has to a contract. |
|
Retrieves the security principals (users or teams) that have access to a contract, together with their access rights to the contract. |
|
Removes all access to a contract for the specified security principal (user or team). |
|
Rolls up or retrieves all the contracts related to the specified account or contact. |
|
Sets the state of a contract. If you are using early bound types, use the ContractState enumeration to set the possible states. To view the entity metadata for your organization, install the Metadata Browser solution described in Browse the metadata for your organization. You can also view the metadata for an uncustomized organization in the Excel file called EntityMetadata.xlsx included in the top-level folder of the SDK download. |
|
Updates a contract. You can also call the IOrganizationService.Update method. |
See Also
Contract entities
ContractDetail (contract line) entity messages and methods
Sample: Manage contracts
Privileges by entity
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright