Represents a contract (a business agreement) associated with an Account.
create(), update(), delete(), query(), search(), retrieve(), getDeleted(), getUpdated(), describeLayout(), describeSObjects(), upsert()
| Field | Field Type | Field Properties | Description |
|---|---|---|---|
| AccountId | reference | Create | Required. ID of the Account associated with this contract. For information on IDs, see ID Field Type. |
| ActivatedById | reference | Filter | ID of the User who activated this contract. |
| ActivatedDate | dateTime | Filter | Date and time when this contract was activated. |
|
string | Create | Details for the billing address. |
| BillingStreet | textarea | Create | Street address for the billing address. |
| CompanySignedDate | date | Create | Date on which the contract was signed by your organization. |
| CompanySignedId | reference | Create | ID of the User who signed the contract. |
| ContractNumber | string | Autonumber | Number of the contract. |
| ContractTerm | int | Create | Number of months that the contract is valid. |
| CustomerSignedDate | date | Create | Date on which the customer signed the contract. |
| CustomerSignedId | reference | Create | ID of the Contact who signed this contract. |
| CustomerSignedTitle | string | Create | Title of the customer who signed the contract. |
| Description | textarea | Create | Description of the contract. |
| EndDate | date | Filter | Read-only. Calculated end date of the contract. This value is calculated by adding the ContractTerm to the StartDate. |
| IsDeleted | boolean | Defaulted on create | Indicates whether the object has been moved to the Recycle Bin (true) or not (false). Label is Deleted. |
| LastActivityDate | date | Filter | Value is one of the following, whichever is the most recent:
|
| LastApprovedDate | dateTime | Filter | Last date the contract was approved. |
| OwnerExpirationNotice | picklist | Create | Number of days ahead of the contract end date (15, 30, 45, 60, 90, and 120). Used to notify the owner in advance that the contract is ending. |
| OwnerId | reference | Create | ID of the user who owns the contract. |
| Pricebook2Id | reference | Create | ID of the pricebook, if any, associated with this contract. |
|
string | Create | Details for the shipping address. |
| ShippingStreet | textarea | Create | Street address for the shipping address. |
| SpecialTerms | textarea | Create | Special terms that apply to the contract. |
| StartDate | date | Create | Start date for this contract. Label is Contract Start Date. |
| Status | picklist | Create | The picklist of values that indicate order status. Each value is within one of two status categories defined in StatusCode. For example, the status picklist may contain: Ready to Ship, Shipped, Received as values within the Activated StatusCode. |
| StatusCode | picklist | Filter | The status category for the order. An order can be either Draft, InApproval, or Activated. Label is Status Category. |
The Contract object represents a business agreement. Client applications can use the API to create(), update(), query(), and retrieve() contracts.
The Status field specifies the current state of a contract. Status strings (defined in the ContractStatus object) represent its current state (Draft, InApproval, or Activated).
Client applications must initially create() a Contract in a non-Activated state. Client applications can subsequently activate a Contract by calling update() and setting the value in its Status field to Activated; however, the Status field is the only field that the client application can set in the update() call when activating the Contract.
Once a Contract has been activated, your client application cannot change its status; however, prior to activation, your client application can change the status value from Draft to InApproval via the API. Also, your client application can delete() contracts whose status is Draft or InApproval but not when a contract status is Activated.
Client applications can use the API to create(), update(), delete(), and query() any Attachment associated with a contract.