ContractType
A contract type is used to group contracts so that they exhibit
similar characteristics. For example, the lifecycle states, the people who access, the
templates and clauses used. This type extends the Metadata metadata type and inherits its
fullName field.
Parent Type
This type extends the Metadata metadata type and inherits its
fullName field.
File Suffix and Directory Location
ContractType components have the suffix .contractType and are stored in the contractTypes folder.
Version
ContractType components are available in API version 54.0 and later.
Special Access Rules
Fields
Field Name | Field Type | Description |
---|---|---|
contractTypeConfigs | ContractTypeConfig[] | A list of configurations for the Contract Type. |
isDefault | boolean | Indicates whether this contract type is a default for the org. Default value is False. |
masterLabel | string | Required. The name of the setting. |
subTypes | string | List of subtypes for the contract object associated with this contract type. |
ContractTypeConfig
Specific configuration settings defined for a Contract Type that control characteristics and behavior of all contracts of that type.
Field Name | Description |
---|---|
configType |
|
configValue |
|
usageType |
|
Declarative Metadata Sample Definition
The following is an example of a ContractType component.
<?xml version="1.0" encoding="UTF-8"?>
<ContractType xmlns="http://soap.sforce.com/2006/04/metadata">
<masterLabel>New_ContractType</masterLabel>
<isDefault>true</isDefault>
<subTypes>RecordTypeName1</subTypes>
</ContractType>
The following is an example package.xml that references the previous definition.
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>ContractType</name>
</types>
<types>
<members>Contract.RecordTypeName1</members>
<name>RecordType</name>
</types>
<version>54.0</version>
</Package>