CLM Developer Guide
CLM Developer Guide
names and marks. Other marks appearing herein may be trademarks of their respective owners.
CONTENTS
In this chapter ... Salesforce Contracts is a next-generation Contract Lifecycle Management (CLM) application that enables
businesses to efficiently and collaboratively manage their contracts, right from authoring and negotiations
• Salesforce Contracts through approval and execution. Documents, data, and life cycles of multiple types of contracts can be
Standard Objects managed centrally in Salesforce, providing organizations complete visibility into their contracting activities.
• Apex Reference Salesforce Contracts provides a highly usable, configurable, and extensible contracting platform that
• Salesforce Contracts can be integrated with industry specific use cases. Salesforce Contracts functionality is centered around
Resources the "Contract" object of Salesforce, which is enriched and extended to support this new application.
• Salesforce Contracts
Metadata API Types
1
Salesforce Contracts Salesforce Contracts Standard Objects
ClauseCatgConfiguration
Represents the configuration about the clause category that can be used in a response document by the user.
ContractDocumentVersion
Tracks contract document versions through contract lifecycle stages. This object is available in API version 56.0 and later.
ContractDocumentReview
Represents the review process-related details, such as the reference object type and review status. This object is available in API
version 58.0 and later.
ContractDocVerContentDoc
Associates a contract document version with a content document. This object is available in API version 56.0 and later.
ContractDocVersionSection
Tracks contract document sections through contract lifecycle stages. This object is available in API version 56.0 and later.
ContractType
A sub type that groups contracts with similar characteristics, such as lifecycle states, permissions, and templates and clauses used.
This object is available in API version 56.0 and later.
ContractTypeConfig
The settings that define the characteristics and behavior of all contracts of that type. This object is available in API version 56.0 and
later.
DocGenerationBatchProcess
Represents a grouping of document generation requests associated with the batch document generation ID. Only one batch
document generation request can be processed at a time. To create a new batch document generation record, pause or cancel the
current record. This object is available in API version 58.0 and later.
DocumentAuthoredContent
Represents the metadata of the content within the content boundary of a document such as a template or contract document. You
can store metadata details of the marked clauses and sections in Salesforce with the document authored content. This object is
available in API version 58.0 and later.
DocumentClause
Represents a clause that can be associated with multiple documents.
DocumentClauseSet
Represents a grouping for clauses, which can hold multiple variations of the same clause such as main clause and alternate
pre-approved clauses based on language.
DocumentEnvelope
The container for a document that is routed for signatures. This object is available in API version 56.0 and later.
DocumentGenerationProcess
Supports server-side document generation requests and responses. This object is available in API version 56.0 and later.
DocumentGenerationSetting
Represents an org's settings for automatic document generation from templates. This object is available in API version 54.0 and later.
DocumentTemplate
Represents information about dynamic document generation. This object is available in API version 56.0 and later.
2
Salesforce Contracts ClauseCatgConfiguration
DocumentTemplateConfig
Represents the shadow object that supports migration of document templates between environments. The Developer field in the
shadow object references the UniqueName field in the document template object and is used to retrieve the document template
details. For internal use only. This object is available in API version 58.0 and later.
DocumentTemplateSection
Represents a section in a document template. A document template section can be a clause, image, context, embedded template,
or signature. This object is available in API version 52.0 and later.
ESignatureConfig
The settings for integrating with external eSignature providers. This object is available in API version 56.0 and later.
ESignatureEnvelopeConfig
The notification-specific settings for integrating with external eSignature providers. This object is available in API version 56.0 and
later.
ExternalDocStorageConfig
Represents a collection of fields to configure the external document storage for an object. It includes details such as location, path,
and named credentials. For example, OneDrive is defined as an External Document Storage and is associated with the Salesforce
Contract object.
ObjectStateActionDefinition
Represents the link between the object state definition and object state transition based on a defined action.
ObjectStateTransitionAction
Represents a junction between object state transition and object state action definition. State transition determines the valid transition
of an object from one state to another and the state action determines which action triggers which state transition.
Obligation
Represents an obligation between parties to fulfill agreed conditions, such as contractual commitments. The obligation commitment
assists with a strategy to achieve the desired outcome within a set timeframe and reduce risk with compliance tracking. For example,
payment due dates, contract terms, renewals. This object is available in API version 59.0 and later.
SalesContractLine
Stores a contract's product information, including price, quantity, and components covered. This object is available in API version
56.0 and later.
UserEsignVendorIdentifier
Used for integrating eSignature users. This object is available in API version 56.0 and later.
ClauseCatgConfiguration
Represents the configuration about the clause category that can be used in a response document by the user.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), query(), retrieve(), update(), upsert()
3
Salesforce Contracts ClauseCatgConfiguration
Fields
Field Details
Description Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The description about the clause category configuration.
MasterLabel Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The name of the clause library category used in the configuration.
UsageType Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Specifies the usage of the clause category.
Possible values are:
• ContractClauseCategory—Contract Clause Category
• DisclosureCategory—Disclosure Category
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
ClauseCatgConfigurationChangeEvent
Change events are available for the object.
ClauseCatgConfigurationFeed
Feed tracking is available for the object.
ClauseCatgConfigurationHistory
History is available for tracked fields of the object.
ClauseCatgConfigurationOwnerSharingRule
Sharing rules are available for the object.
ClauseCatgConfigurationShare
Sharing is available for the object.
4
Salesforce Contracts ContractDocumentVersion
ContractDocumentVersion
Tracks contract document versions through contract lifecycle stages. This object is available in API version 56.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field Details
ContractId Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the contract associated with the contract document version.
This is a relationship field.
Relationship Name
Contract
Relationship Type
Lookup
Refers To
Contract
CreatedByFullName Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
User who created this contract document version.
CreationProcessType Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates how the document version was created
Possible values are:
• BatchMode
• Checkout
5
Salesforce Contracts ContractDocumentVersion
Field Details
• CheckoutModify
• CreateContract
• Customize
• Generate
• Import
• ReconcileWord
• UpdateContract
DocConversionResourceName Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The name of the resource containing the Microsoft Word document file used to generate
the output web document.
DocumentTemplateId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Document Template Identifier.
This is a relationship field.
Relationship Name
DocumentTemplate
Relationship Type
Lookup
Refers To
DocumentTemplate
HasNewTemplateVersionAvl Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the latest version of the template is newer than the version used to generate
the document.
The default value is 'false'.
HasReconRedlinedSection Type
boolean
6
Salesforce Contracts ContractDocumentVersion
Field Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this contract document version contains red lines.
The default value is 'false'.
HasRedlinedSection Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this contract document version contains red lines.
The default value is 'false'.
IsDocumentVersionLocked Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the document is locked.
The default value is 'false'.
IsLockedByCurrentUser Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the user currently accessing the document has locked the document.
The default value is 'false'.
IsSectionInfoStoredInDoc Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether section IDs are stored in the document (used for internal processing).
The default value is 'false'.
ShouldBypassStateMdlTrnst Type
boolean
7
Salesforce Contracts ContractDocumentVersion
Field Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the Contract State Model Transition is bypassed (true) or ignored (false).
The default value is 'false'.
LockType Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies the reason why the document version is locked.
Possible values are:
• Generate
• SuperUser
• User
LockedById Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the user who locked this version.
This is a relationship field.
Relationship Name
LockedBy
Relationship Type
Lookup
Refers To
User
LockedByUserName Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Name of the user who locked this version.
NonStandardSectionCount Type
int
8
Salesforce Contracts ContractDocumentVersion
Field Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Count of non-standard sections.
ReconRedlinedSectionCount Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Total count of sections that contain red lines in the document version.
RedlinedSectionCount Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Total count of sections that contain red lines in the document version.
Status Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Contract document version status.
Possible values are:
• Active
• Inactive
• Draft
VersionNumber Type
int
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
Contract document version number.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
9
Salesforce Contracts ContractDocumentReview
ContractDocumentVersionChangeEvent
Change events are available for the object.
ContractDocumentVersionFeed
Feed tracking is available for the object.
ContractDocumentVersionHistory
History is available for tracked fields of the object.
ContractDocumentVersionOwnerSharingRule
Sharing rules are available for the object.
ContractDocumentVersionShare
Sharing is available for the object.
ContractDocumentReview
Represents the review process-related details, such as the reference object type and review status. This object is available in API version
58.0 and later.
Supported Calls
create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(),
undelete(), update(), upsert()
Fields
Field Details
ContractDocumentVersionId Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The contract document version associated with the external document.
This field is a relationship field.
Relationship Name
ContractDocumentVersion
Relationship Type
Lookup
Refers To
ContractDocumentVersion
10
Salesforce Contracts ContractDocumentReview
Field Details
ExternalReviewerEmail Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The email ID for the document reviewer.
ExternalReviewerIdentifier Type
string
Properties
Filter, Group, Nillable, Sort
Description
The alphanumeric external identifier for the reviewer.
Name Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
Name of contract document.
Status Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The status of document review. The default value is NotStarted.
Possible values are:
• Completed—Complete
• InProgress—In Progress
• NotStarted—Not Started
UnresolvedCommentCount Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of unresolved comments in the document.
11
Salesforce Contracts ContractDocVerContentDoc
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
ContractDocumentReviewChangeEvent
Change events are available for the object.
ContractDocumentReviewFeed
Feed tracking is available for the object.
ContractDocumentReviewHistory
History is available for tracked fields of the object.
ContractDocumentReviewOwnerSharingRule
Sharing rules are available for the object.
ContractDocumentReviewShare
Sharing is available for the object.
ContractDocVerContentDoc
Associates a contract document version with a content document. This object is available in API version 56.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), update(), upsert()
Fields
Field Details
ContentDocumentId Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
ID of the content document associated with the contract document version content
document.
This is a relationship field.
Relationship Name
ContentDocument
Relationship Type
Lookup
Refers To
ContentDocument
12
Salesforce Contracts ContractDocVerContentDoc
Field Details
ContentVersion Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Identifies the content version.
ContractDocumentVersionId Type
reference
Properties
Create, Filter, Group, Sort
Description
ID of the contract document version.
This is a relationship field.
Relationship Name
ContractDocumentVersion
Relationship Type
Lookup
Refers To
ContractDocumentVersion
DocumentSourceType Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Source where the generated document originated.
Possible values are:
• Content
• External
The default value is 'Content'.
IsGeneratedDocCheckedIn Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the generated document is checked in.
The default value is 'false'.
13
Salesforce Contracts ContractDocVersionSection
Field Details
Name Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
Lists the contract document name.
RelatedCntrDocVerContentDocId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the contract document version content document that links PDF and Word documents.
This is a relationship field.
Relationship Name
RelatedCntrDocVerContentDoc
Relationship Type
Lookup
Refers To
ContractDocVerContentDoc
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
ContractDocVerContentDocChangeEvent
Change events are available for the object.
ContractDocVerContentDocFeed
Feed tracking is available for the object.
ContractDocVerContentDocHistory
History is available for tracked fields of the object.
ContractDocVerContentDocOwnerSharingRule
Sharing rules are available for the object.
ContractDocVerContentDocShare
Sharing is available for the object.
ContractDocVersionSection
Tracks contract document sections through contract lifecycle stages. This object is available in API version 56.0 and later.
14
Salesforce Contracts ContractDocVersionSection
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field Details
ContractDocumentVersionId Type
reference
Properties
Create, Filter, Group, Sort
Description
Contract Document Version to which this section belongs.
This is a relationship field.
Relationship Name
ContractDocumentVersion
Relationship Type
Lookup
Refers To
ContractDocumentVersion
CreationProcessType Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates how this section was created.
Possible values are:
• BatchMode
• Customize
• Generate
• Import
• ReconcileWord
• UpdateContract
The default value is 'Generate'.
DisplayHeaderFontStyle Type
textarea
Properties
Create, Nillable, Update
15
Salesforce Contracts ContractDocVersionSection
Field Details
Description
The default font style of a section header in the generated web document.
DocumentTemplateClauseId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Clause from which this contract section is created.
This is a relationship field.
Relationship Name
DocumentTemplateClause
Relationship Type
Lookup
Refers To
DocumentTemplateClause
DocumentTemplateSectionId Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The template section from which this contract section is created.
This is a relationship field.
Relationship Name
DocumentTemplateSection
Relationship Type
Lookup
Refers To
DocumentTemplateSection
HasReconciledRedlines Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the contract section contains reconciled red lines.
The default value is 'false'.
IsBeginSplitSection Type
boolean
16
Salesforce Contracts ContractDocVersionSection
Field Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates that a section split in the generated web document begins here.
The default value is 'false'.
IsEndSplitSection Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates that a section split in the generated web document ends here.
The default value is 'false'.
IsRedlinedSection Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the contract section contains red lines.
The default value is 'false'.
IsSectionStandard Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether a section conforms to its template.
The default value is 'false'.
Level Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Level of this section in the section hierarchy.
ReconciledSectionContent Type
textarea
Properties
Create, Nillable, Update
17
Salesforce Contracts ContractDocVersionSection
Field Details
Description
Section content resulting from reconciliation in the Word document.
SectionContent Type
textarea
Properties
Create, Update
Description
Section content in HTML format.
Sequence Type
int
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
Section's sequence number in the contract document.
SignatureContent Type
textarea
Properties
Create, Nillable, Update
Description
DocuSign signature tokens.
SubSequence Type
int
Properties
Create, Filter, Group, idLookup, Nillable, Sort, Update
Description
The sub sequence of the section in the generated web document.
TemplateSectionContent Type
textarea
Properties
Create, Nillable, Update
Description
Original section content from the corresponding template section.
TokenList Type
textarea
Properties
Create, Nillable, Update
18
Salesforce Contracts ContractDocVersionSection
Field Details
Description
Tokens in the section that map to Salesforce object fields.
Type Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates section type.
Possible values are:
• Clause
• Context
• Custom
• EmbeddedTemplate
• Image
• Item
• RepeatingContent
• Signature
The default value is 'Context'.
XmlContent Type
textarea
Properties
Create, Nillable, Update
Description
Section content in XML format.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
ContractDocVersionSectionChangeEvent
Change events are available for the object.
ContractDocVersionSectionFeed
Feed tracking is available for the object.
ContractDocVersionSectionHistory
History is available for tracked fields of the object.
ContractDocVersionSectionOwnerSharingRule
Sharing rules are available for the object.
19
Salesforce Contracts ContractType
ContractDocVersionSectionShare
Sharing is available for the object.
ContractType
A sub type that groups contracts with similar characteristics, such as lifecycle states, permissions, and templates and clauses used. This
object is available in API version 56.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Details
Name Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Specifies the contract type name.
IsDefault Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether this contract type is a default for the org.
The default value is 'false'.
SubTypes Type
string
Properties
Create, Filter, Group, idLookup, Nillable, Sort, Update
Description
List of subtypes for the contract object associated with this contract type.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
20
Salesforce Contracts ContractTypeConfig
ContractTypeChangeEvent
Change events are available for the object.
ContractTypeFeed
Feed tracking is available for the object.
ContractTypeHistory
History is available for tracked fields of the object.
ContractTypeOwnerSharingRule
Sharing rules are available for the object.
ContractTypeShare
Sharing is available for the object.
ContractTypeConfig
The settings that define the characteristics and behavior of all contracts of that type. This object is available in API version 56.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Details
ConfigType Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The name of the configuration setting.
Possible values are:
• Append0ToAutoNbrEmbeddedSect
• AutoGenDocOnContractCreation
• AutoGenDocOnContractUpdate
• AutoGenerateDocFileType
• ContractDocumentDownloadOption
• ContractSignatureDeclinedSts
• ContractSignatureExpiredStatus
• ContractSignatureVoidedStatus
• ContractSignedStatus
• CreateDocSectionsDocxTemplates
• DefaultTemplateName
• DocuSignAccountBrand
21
Salesforce Contracts ContractTypeConfig
Field Details
• DocuSignExpireEnabled
• DocuSignExpireWarning
• DocuSignExpiresAfter
• DocuSignReminderDelayinDays
• DocuSignReminderEnabled
• DocuSignReminderFrequency
• DocuSignUseAccountDefaultNtfcn
• DocumentFileNameFormat
• EmailNotificationOnDocumentGeneration
• ImportTargetContractStatus
• InclWordTrackChgReconciliation
• InclWordTrackChgSectionContent
• NotifyDocTemplateVerChgStatus
• TrackContractRedlines
• WordTrackChangesDisplayColor
The default value is 'ContractDocumentDownloadOption'.
ConfigValue Type
textarea
Properties
Create, Nillable, Update
Description
The value of the configuration setting specified in the Configuration Name field.
ContractTypeId Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the related Contract Type.
This is a relationship field.
Relationship Name
ContractType
Relationship Type
Lookup
Refers To
ContractType
UsageType Type
picklist
22
Salesforce Contracts DocGenerationBatchProcess
Field Details
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The usage type to which this setting belongs.
Possible values are:
• DocumentSetting
• Reconciliation
• Redlining
• SignatureSetting
The default value is 'DocumentSetting'.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
ContractTypeConfigChangeEvent
Change events are available for the object.
ContractTypeConfigFeed
Feed tracking is available for the object.
ContractTypeConfigHistory
History is available for tracked fields of the object.
ContractTypeConfigOwnerSharingRule
Sharing rules are available for the object.
ContractTypeConfigShare
Sharing is available for the object.
DocGenerationBatchProcess
Represents a grouping of document generation requests associated with the batch document generation ID. Only one batch document
generation request can be processed at a time. To create a new batch document generation record, pause or cancel the current record.
This object is available in API version 58.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
23
Salesforce Contracts DocGenerationBatchProcess
Fields
Field Details
Category Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The category/classification of the document generation batch process request.
Possible values are:
• Agreements
• Proposals
• Quotes
CompletionDate Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
The date when the document generation batch process was completed.
Description Type
textarea
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The description of the document generation batch process record.
FailedRequestCount Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of failed document generation requests associated with the document generation
batch process.
InProgressRequestCount Type
int
Properties
Filter, Group, Nillable, Sort
24
Salesforce Contracts DocGenerationBatchProcess
Field Details
Description
The number of in progress document generation requests associated with the document
generation batch process.
Name Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
The autogenerated system name for a document generation batch process record. For
example, BatchReq-0001.
OwnerId Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The ID of the user that owns this record.
This field is a polymorphic relationship field.
Relationship Name
Owner
Relationship Type
Lookup
Refers To
Group, User
Status Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
The status of the document generation batch process request.
Possible values are:
• Canceled
• Completed
• InProgress—In Progress
• New
• Paused
The default value is New.
25
Salesforce Contracts DocumentAuthoredContent
Field Details
SuccessfulRequestCount Type
int
Properties
Filter, Group, Nillable, Sort
Description
The number of successful document generation requests associated with the document
generation batch process.
TotalRequestCount Type
int
Properties
Filter, Group, Nillable, Sort
Description
The total number of document generation requests associated with the document generation
batch process.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
DocGenerationBatchProcessChangeEvent
Change events are available for the object.
DocGenerationBatchProcessFeed
Feed tracking is available for the object.
DocGenerationBatchProcessHistory
History is available for tracked fields of the object.
DocGenerationBatchProcessOwnerSharingRule
Sharing rules are available for the object.
DocGenerationBatchProcessShare
Sharing is available for the object.
DocumentAuthoredContent
Represents the metadata of the content within the content boundary of a document such as a template or contract document. You can
store metadata details of the marked clauses and sections in Salesforce with the document authored content. This object is available
in API version 58.0 and later.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
26
Salesforce Contracts DocumentAuthoredContent
Fields
Field Details
Checksum Type
string
Properties
Filter, Group, Nillable, Sort
Description
The number of bits for the document authored content. Use the checksum to detect content
changes.
Content Type
textarea
Properties
Nillable
Description
The text marked as a document authored content, such as clause content, or section content.
ContentGenerationSource Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The source of content creation.
Possible values are:
• MarkedContent—Marked Content
• StandardContent—Standard Content
ContentType Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The document authored content type associated with the Reference Object. For example,
Document Clause, Document Section.
Possible values are:
• DocumentAuthoredClause—Document Authored Clause
• DocumentAuthoredSection—Document Authored Section
27
Salesforce Contracts DocumentAuthoredContent
Field Details
• StandardDocumentClause—Standard Document Clause
DocAuthoredContentIdentifier Type
string
Properties
Filter, Group, Nillable, Sort
Description
The unique reference ID (128-bit text string) that's created at the document level and used
to identify the document authored content.
Name Type
string
Properties
Filter, Group, idLookup, Nillable, Sort
Description
The name of the document authored content.
ParentContentId Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of parent content associated with the document authored content. For example, the
ID of the section that contains clauses.
This field is a relationship field.
Relationship Name
ParentContent
Relationship Type
Lookup
Refers To
DocumentAuthoredContent
ReferenceObjectId Type
reference
Properties
Filter, Group, Sort
Description
The object associated with the document authored content.
This field is a polymorphic relationship field.
Relationship Name
ReferenceObject
28
Salesforce Contracts DocumentAuthoredContent
Field Details
Relationship Type
Lookup
Refers To
ContractDocumentVersion, DocumentTemplate
ReferenceObjectRecordType Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The record type of the Reference Object. For example Contract Document Version, Document
Template.
Possible values are:
• ContractDocumentVersion—Contract Document Version
• DocumentTemplate—Document Template
StandardContentObjectId Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The ID of the standard Salesforce content associated with the document authored content.
This field is a relationship field.
Relationship Name
StandardContentObject
Relationship Type
Lookup
Refers To
DocumentClause
StandardContentObjectType Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies the standard Salesforce content associated with the document authored content,
such as Document Clause.
Possible values are:
• DocumentClause—Document Clause
29
Salesforce Contracts DocumentClause
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
DocumentAuthoredContentChangeEvent
Change events are available for the object.
DocumentAuthoredContentFeed
Feed tracking is available for the object.
DocumentAuthoredContentHistory
History is available for tracked fields of the object.
DocumentAuthoredContentOwnerSharingRule
Sharing rules are available for the object.
DocumentAuthoredContentShare
Sharing is available for the object.
DocumentClause
Represents a clause that can be associated with multiple documents.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field Details
Content Type
textarea
Properties
Create, Nillable, Update
Description
Represents the HTML content of the document clause.
Description Type
textarea
Properties
Create, Nillable, Update
30
Salesforce Contracts DocumentClause
Field Details
Description
Represents the summary of the document clause.
DocumentClauseSetId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Represents the ID of Document Clause Group associated with Document Clause.
This field is a relationship field.
Relationship Name
DocumentClauseSet
Relationship Type
Lookup
Refers To
DocumentClauseSet
Format Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies the format for the clause such as Rich Text.
Possible values are:
• Non_Formatted—Non Formatted
• Rich_Text—Rich Text
The default value is Non_Formatted.
IsAlternateClause Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the Document Clause is main or alternate.
The default value is false.
Language Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
31
Salesforce Contracts DocumentClause
Field Details
Description
Specifies the language of the document clause.
Possible values are:
• da—Danish
• de—German
• en_US—English
• es—Spanish
• es_MX—Spanish (Mexico)
• fi—Finnish
• fr—French
• it—Italian
• ja—Japanese
• ko—Korean
• nl_NL—Dutch
• no—Norwegian
• pt_BR—Portuguese (Brazil)
• ru—Russian
• sv—Swedish
• th—Thai
• zh_CN—Chinese (Simplified)
• zh_TW—Chinese (Traditional)
Name Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
Specifies the name of the document template clause.
Status Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Specifies the status of the clause such as Draft, Active, Archived.
Possible values are:
• Active
• Archived
• Draft
32
Salesforce Contracts DocumentClauseSet
Field Details
• In_Approval—In Approval
The default value is Draft.
Version Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The version number of the document clause.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
DocumentClauseChangeEvent
Change events are available for the object.
DocumentClauseFeed
Feed tracking is available for the object.
DocumentClauseHistory
History is available for tracked fields of the object.
DocumentClauseOwnerSharingRule
Sharing rules are available for the object.
DocumentClauseShare
Sharing is available for the object.
DocumentClauseSet
Represents a grouping for clauses, which can hold multiple variations of the same clause such as main clause and alternate pre-approved
clauses based on language.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
33
Salesforce Contracts DocumentClauseSet
Fields
Field Details
Category Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Specifies the category of the clause set.
Possible values are:
• 0zMRO000000003P—Test
CategoryReferenceId Type
reference
Properties
Filter, Group, Nillable, Sort
Description
This field is used for validating category values.
This field is a relationship field.
Relationship Name
CategoryReference
Relationship Type
Lookup
Refers To
ClauseCatgConfiguration
DefaultLanguage Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies the default language of the clause set.
Possible values are:
• da—Danish
• de—German
• en_US—English
• es—Spanish
• es_MX—Spanish (Mexico)
• fi—Finnish
• fr—French
• it—Italian
34
Salesforce Contracts DocumentClauseSet
Field Details
• ja—Japanese
• ko—Korean
• nl_NL—Dutch
• no—Norwegian
• pt_BR—Portuguese (Brazil)
• ru—Russian
• sv—Swedish
• th—Thai
• zh_CN—Chinese (Simplified)
• zh_TW—Chinese (Traditional)
Name Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
The name of the clause set.
Status Type
picklist
Properties
Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort
Description
Specifies the status of the clause set.
Possible values are:
• Active
• Archived
• Draft
The default value is Draft.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
DocumentClauseSetChangeEvent
Change events are available for the object.
DocumentClauseSetFeed
Feed tracking is available for the object.
DocumentClauseSetHistory
History is available for tracked fields of the object.
35
Salesforce Contracts DocumentEnvelope
DocumentClauseSetOwnerSharingRule
Sharing rules are available for the object.
DocumentClauseSetShare
Sharing is available for the object.
DocumentEnvelope
The container for a document that is routed for signatures. This object is available in API version 56.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field Details
ContractDocumentVersionId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the Contract for the Contract Document Version to which this Document Envelope
belongs.
This is a relationship field.
Relationship Name
ContractDocumentVersion
Relationship Type
Lookup
Refers To
ContractDocumentVersion
DeliveredDateTime Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
The timestamp at which the document was most recently viewed by all recipients.
EnvelopeIdentifier Type
string
Properties
Create, Filter, Group, idLookup, Nillable, Sort, Update
36
Salesforce Contracts DocumentEnvelope
Field Details
Description
The identifier of this Document Envelope.
EnvelopeMessageContent Type
textarea
Properties
Create, Nillable, Update
Description
The body of the email sent to the recipient.
EnvelopeSubject Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
The subject of the email sent to the recipient.
EnvelopeUri Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The URI of this Document Envelope.
FinalStatusDateTime Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
The time-stamp at which this Document Envelope was completed.
FinalStatusReason Type
string
Properties
Create, Filter, Nillable, Sort, Update
Description
The final status reason of this Document Envelope.
Name Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
37
Salesforce Contracts DocumentEnvelope
Field Details
Description
The name of this Document Envelope.
ReferenceObjectId Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the object associated with this Document Envelope.
This is a polymorphic relationship field.
Relationship Name
ReferenceObject
Relationship Type
Lookup
Status Type
picklist
Properties
Create, Filter, Group, Sort, Update
Description
The status of this Document Envelope.
Possible values are:
• Sent
• Delivered
• Declined
• Voided
• Completed
StatusChangeDateTime Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
The most recent timestamp at which the Status of this Document Envelope was updated.
Vendor Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
38
Salesforce Contracts DocumentGenerationProcess
Field Details
Description
The name of the online signature vendor.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
DocumentEnvelopeChangeEvent
Change events are available for the object.
DocumentEnvelopeFeed
Feed tracking is available for the object.
DocumentEnvelopeHistory
History is available for tracked fields of the object.
DocumentEnvelopeOwnerSharingRule
Sharing rules are available for the object.
DocumentEnvelopeShare
Sharing is available for the object.
DocumentGenerationProcess
Supports server-side document generation requests and responses. This object is available in API version 56.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field Details
Name Type
string
Properties
Autonumber, Defaulted on create, Filter, idLookup, Sort
Description
Represents an automatically generated system name. Example: Request-001.
ReferenceObject Type
string
Properties
Create, Filter, Group, idLookup, Nillable, Sort, Update
39
Salesforce Contracts DocumentGenerationProcess
Field Details
Description
Refers to the object to which generated document is attached.
RequestText Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ResponseText Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Requests parameters that are passed in the payload.
SourceObjectId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Specifies the object from which the document generation request is created. For example,
Contract Document Version.
This field is a polymorphic relationship field.
Relationship Name
SourceObject
Relationship Type
Lookup
Refers To
ContractDocumentVersion
Status Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Contains the status of the request.
Possible values are:
• Failure
• Success
• InProgress
40
Salesforce Contracts DocumentGenerationSetting
Field Details
The default value is InProgress.
TokenData Type
textarea
Properties
Create, Nillable, Update
Description
Contains JSON data with information that users enter in the new, generated document.
TokenDataContentDocument Type
reference
Properties
Create, Filter, Group, Nillable, Sort
Description
The Token Data Content Document associated with the Document Generation Process.
Contains information that users enter in the new generated document.
Type Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Type of service requested for the document for generating and converting to PDF.
Possible values are:
• Generate
• Convert
• GenerateAndConvert
The default value is Generate.
DocumentGenerationSetting
Represents an org's settings for automatic document generation from templates. This object is available in API version 54.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
41
Salesforce Contracts DocumentGenerationSetting
Fields
Field Details
BatchDocGnrnPctLimitPerHour Type
percent
Properties
Create, Defaulted on create, Filter, Nillable, Sort, Update
Description
The maximum percentage of hourly server-side document generation requests used for
batch processing.
Available in version 58.0 and later.
DocumentTemplateLibraryName Type
string
Properties
Create, Defaulted on create, Filter, Group, Nillable, Sort, Update
Description
The name of the library associated with the document template.
GenerationMechanism Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The location where the web document is generated.
Possible values are:
• ClientSide—Client-Side
• ServerSide—Server-Side
The default value is ClientSide.
GuestAccessNamedCredential Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The named credential that lets guest users generate documents.
IsBatchDocGnrnEnabled Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
42
Salesforce Contracts DocumentGenerationSetting
Field Details
Description
Indicates whether server-side document generation requests are queued and processed
within the hourly batch document generation limit.
The default value is false.
Available in version 58.0 and later.
IsServerSideDocGenEnabled Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether side server document generation is enabled true or not false for
this org.
The default value is false.
Language Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language of the label in the user interface.
Possible values are:
• da—Danish
• de—German
• en_US—English
• es—Spanish
• es_MX—Spanish (Mexico)
• fi—Finnish
• fr—French
• it—Italian
• ja—Japanese
• ko—Korean
• nl_NL—Dutch
• no—Norwegian
• pt_BR—Portuguese (Brazil)
• ru—Russian
• sv—Swedish
• th—Thai
• zh_CN—Chinese (Simplified)
43
Salesforce Contracts DocumentGenerationSetting
Field Details
• zh_TW—Chinese (Traditional)
MasterLabel Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The user interface label for document generation setting.
NamespacePrefix Type
string
Properties
Filter, Group, Nillable, Sort
Description
The namespace prefix that is associated with this object. Each Developer Edition org that
creates a managed package has a unique namespace prefix. Limit: 15 characters. You can
refer to a component in a managed package by using the
namespacePrefix__componentName notation.
The namespace prefix can have one of the following values.
• In Developer Edition orgs, NamespacePrefix is set to the namespace prefix of the
org for all objects that support it, unless an object is in an installed managed package.
In that case, the object has the namespace prefix of the installed managed package. This
field’s value is the namespace prefix of the Developer Edition org of the package
developer.
• In orgs that are not Developer Edition orgs, NamespacePrefix is set only for objects
that are part of an installed managed package. All other objects have no namespace
prefix.
PreviewType Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The type of viewer that’s used to view the generated web document.
Possible values are:
• PDF
• Thumbnail
The default value is PDF.
44
Salesforce Contracts DocumentTemplate
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
DocumentGenerationSettingChangeEvent
Change events are available for the object.
DocumentGenerationSettingFeed
Feed tracking is available for the object.
DocumentGenerationSettingHistory
History is available for tracked fields of the object.
DocumentGenerationSettingOwnerSharingRule
Sharing rules are available for the object.
DocumentGenerationSettingShare
Sharing is available for the object.
DocumentTemplate
Represents information about dynamic document generation. This object is available in API version 56.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field Details
CustomClassName Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The name of the custom class that provides token values required by the template for
document generation.
DefaultFontStyle Type
textarea
Properties
Create, Nillable, Update
Description
The default font style for a web document template.
DocumentConversionResourceName Type
string
45
Salesforce Contracts DocumentTemplate
Field Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The name of the resource containing the Microsoft Word document file used to generate
the output web document.
DocumentGenerationMechanism Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies the method for generating the document.
Possible values are:
• ClientSide
• ServerSide
The default value is ClientSide.
ExtractOmniDataTransformName Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The name of the OmniDataTransform bundle of the extract type.
GlobalKey Type
string
Properties
Create, Filter, Group, idLookup, Nillable, Sort, Update
Description
The unique ID used when migrating the document template between Salesforce orgs. This
field is specifically used for import and export operations in managed packages.
HasBatchableSection Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the template has one or more batchable sections.
The default value is false.
46
Salesforce Contracts DocumentTemplate
Field Details
IsActive Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the document template is active.
The default value is false.
IsSectionProcessed Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the contract boundary sections of the document template are processed.
The default value is false.
LastEmbeddedTmplSectionKey Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The last auto generated key of the embedded template section.
MapperOmniDataTransformName Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The name of the OmniDataTransform bundle of the mapper type.
Name Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
The name of the document template.
Namespace Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
47
Salesforce Contracts DocumentTemplate
Field Details
Description
Indicates whether the document template was exported using the industry-specific templates
datapack (namespace prefix), or a user manually created or cloned an exported document
template (blank). The namespace prefix is associated with the industry license. For example,
insurance_fsc_ise.
OwnerId Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The ID of the document template.
This field is a polymorphic relationship field.
Relationship Name
Owner
Relationship Type
Lookup
Refers To
Group, User
RecordTypeId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the record type associated with this object.
This field is a relationship field.
Relationship Name
RecordType
Relationship Type
Lookup
Refers To
RecordType
SectionHeaderFontStyle Type
textarea
Properties
Create, Nillable, Update
Description
The field to select font style for the section header of the web document template.
48
Salesforce Contracts DocumentTemplate
Field Details
SectionHeaderFontStyleValue Type
textarea
Properties
Create, Nillable, Update
Description
The value of the font style selected for the section header of the web document template.
ShouldDisplayUnmappedToken Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the tokens without runtime values must be displayed.
The default value is false.
ShouldExtractEmbeddedTmplToken Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether tokens from all the templates embedded within the document template
must be extracted. If this field’s value is yes, the embedded template tokens are extracted
into the mapping omnidatatransform associated with the template.
The default value is false.
Status Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies the status of the document template.
Possible values are:
• Active
• Archived
• Draft
TargetTokenItemObject Type
multipicklist
Properties
Create, Filter, Nillable, Update
49
Salesforce Contracts DocumentTemplate
Field Details
Description
The line item object of the target token object associated with the document template, that's
used for mapping tokens.
Possible values are:
• OpportunityLineItem
• OrderLineItem
• QuoteLineItem
TargetTokenObject Type
multipicklist
Properties
Create, Filter, Nillable, Update
Description
The object associated with the document template that's used for mapping tokens.
Possible values are:
• Contract
• Opportunity
• Order
• Quote
TokenList Type
textarea
Properties
Create, Nillable, Update
Description
The list of tokens used to define a section condition.
TokenMappingMethodType Type
picklist
Properties
Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies the processing method for the data which can come from same source object.
Possible values are:
• CustomClass
• OmniDataTransform
TokenMappingType Type
picklist
50
Salesforce Contracts DocumentTemplate
Field Details
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Specifies the mapping type for tokens of the document template.
Possible values are:
• JSON
• SalesforceObject
Type Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Specifies the type of document template.
Possible values are:
• Web
• MicrosoftWord
• MicrosoftPowerpoint
UniqueName Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The unique name for the document template.
UsageType Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies the document template usage. For example, the Contract Lifecycle Management
option allows you to use the document template only for contract document generation.
The default value is Contract_Lifecycle_Management.
VersionNumber Type
int
Properties
Create, Filter, Group, idLookup, Nillable, Sort, Update
51
Salesforce Contracts DocumentTemplateConfig
Field Details
Description
The version number of the document template.
XmlRelationshipMetadata Type
textarea
Properties
Create, Nillable, Update
Description
The WML relationship metadata used to process Microsoft Word documents.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
DocumentTemplateChangeEvent
Change events are available for the object.
DocumentTemplateFeed
Feed tracking is available for the object.
DocumentTemplateHistory
History is available for tracked fields of the object.
DocumentTemplateOwnerSharingRule
Sharing rules are available for the object.
DocumentTemplateShare
Sharing is available for the object.
DocumentTemplateConfig
Represents the shadow object that supports migration of document templates between environments. The Developer field in the
shadow object references the UniqueName field in the document template object and is used to retrieve the document template details.
For internal use only. This object is available in API version 58.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Details
DeveloperName Type
string
52
Salesforce Contracts DocumentTemplateConfig
Field Details
Properties
Create, Filter, Group, Sort, Update
Description
Required. The unique name of the object in the API. This name can contain only underscores
and alphanumeric characters and must be unique in your organization. It must begin with
a letter, not include spaces, not end with an underscore, and not contain two consecutive
underscores.
Language Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The language of the label in the user interface.
Possible values are:
• da—Danish
• de—German
• en_US—English
• es—Spanish
• es_MX—Spanish (Mexico)
• fi—Finnish
• fr—French
• it—Italian
• ja—Japanese
• ko—Korean
• nl_NL—Dutch
• no—Norwegian
• pt_BR—Portuguese (Brazil)
• ru—Russian
• sv—Swedish
• th—Thai
• zh_CN—Chinese (Simplified)
• zh_TW—Chinese (Traditional)
MasterLabel Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Required The user interface label for the document template config.
53
Salesforce Contracts DocumentTemplateSection
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
DocumentTemplateConfigChangeEvent
Change events are available for the object.
DocumentTemplateConfigFeed
Feed tracking is available for the object.
DocumentTemplateConfigHistory
History is available for tracked fields of the object.
DocumentTemplateConfigOwnerSharingRule
Sharing rules are available for the object.
DocumentTemplateConfigShare
Sharing is available for the object.
DocumentTemplateSection
Represents a section in a document template. A document template section can be a clause, image, context, embedded template, or
signature. This object is available in API version 52.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field Details
AccessType Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The type of access for the section in a generated document.
Possible values are:
• Editable
• ReadOnly—Read Only
The default value is Editable.
54
Salesforce Contracts DocumentTemplateSection
Field Details
DisplayConditionExpression Type
textarea
Properties
Create, Nillable, Update
Description
The condition that controls the display of a section in the document template.
DocumentTemplateClauseId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the document template clause association with the section.
This field is a relationship field.
Relationship Name
DocumentTemplateClause
Relationship Type
Lookup
Refers To
DocumentClause
DocumentTemplateId Type
reference
Properties
Create, Filter, Group, Sort
Description
The ID of the document template associated with the section.
This field is a relationship field.
Relationship Name
DocumentTemplate
Relationship Type
Lookup
Refers To
DocumentTemplate
EmbeddedDocumentTemplateId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the embedded document template associated with the section.
55
Salesforce Contracts DocumentTemplateSection
Field Details
This field is a relationship field.
Relationship Name
EmbeddedDocumentTemplate
Relationship Type
Lookup
Refers To
DocumentTemplate
EmbeddedKey Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
HasSectionNumberReset Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the section number must be reset in the generated web document.
The default value is false.
IsBatchable Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the section must be generated using a batch job.
The default value is false.
IsDisplayOnNewPage Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates if the section must be displayed on a new page in the generated web document.
The default value is false.
IsNewLineAfterSectionEnabled Type
boolean
56
Salesforce Contracts DocumentTemplateSection
Field Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether a line should get added after the section in a generated web document.
The default value is false.
IsSectionNumberDisplayEnabled Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the section number must be displayed on the generated web document.
The default value is false.
IsTableHeaderRepeatable Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the table header must be displayed on every page in the generated web
document.
The default value is false.
Name Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
The name of the section in a document template.
ReferenceClassName Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The name of the custom class associated with the section.
SectionContent Type
textarea
Properties
Create, Nillable, Update
57
Salesforce Contracts DocumentTemplateSection
Field Details
Description
The content of the section in either HTML or JSON format.
SectionSequenceNumber Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
The sequence of the section in the generated web document.
SectionType Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The type of section in a document template.
Possible values are:
• Clause
• Context
• Custom
• EmbeddedTemplate—Embedded Template
• Image
• Item
• RepeatingContent—Repeating Content
• Signature
SectionTypeItemFontStyle Type
textarea
Properties
Create, Nillable, Update
Description
The field to select font style for the display of item section type in the generated web
document.
SectionTypeItemFontValue Type
textarea
Properties
Create, Nillable, Update
Description
The value of the font style selected for the display of the item section type in the generated
web document.
58
Salesforce Contracts DocumentTemplateSection
Field Details
SectionTypeSignatureContent Type
textarea
Properties
Create, Nillable, Update
Description
The tokens used for integration with eSignature applications.
ShouldDisplayHeaderContentInline Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the section content must be displayed inline with the section header in
the generated web document.
The default value is false.
ShouldDisplayHeaderName Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the section name must be displayed in the generated web document.
The default value is false.
ShouldGenerateEmbeddedKey Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the embedded key should be generated in the generated web document.
The default value is false.
TokenList Type
textarea
Properties
Create, Nillable, Update
Description
The list of tokens used in a section of the generated web document.
TotalSectionConditionCount Type
int
59
Salesforce Contracts ESignatureConfig
Field Details
Properties
Filter, Group, Nillable, Sort
Description
The number of display conditions for the section in a document template.
This field is a calculated field.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
DocumentTemplateSectionChangeEvent
Change events are available for the object.
DocumentTemplateSectionFeed
Feed tracking is available for the object.
DocumentTemplateSectionHistory
History is available for tracked fields of the object.
DocumentTemplateSectionOwnerSharingRule
Sharing rules are available for the object.
DocumentTemplateSectionShare
Sharing is available for the object.
ESignatureConfig
The settings for integrating with external eSignature providers. This object is available in API version 56.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Details
ConfigType Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Indicates the configured setting.
Possible values are:
• AnchorString
60
Salesforce Contracts ESignatureConfig
Field Details
• SignerRoles
• SyncFileSizeLimit
• CalloutTimeout
• EnvelopesLastPollDate
• CalloutNamedCredential
• eSignVendorAccountId
• RecipientsCustomClass
• DocumentsCustomClass
The default value is 'AnchorString'.
ConfigValue Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Value of the configured setting.
Description Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The description for the configuration setting.
GroupType Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
The group to which the configuration setting belongs.
Possible values are:
• AnchorTabSetting
• EnvelopeObjectLimits
• CalloutConfigurationSetup
• Envelope
• eSignVendorAccount
• CustomClassSetting
Vendor Type
picklist
61
Salesforce Contracts ESignatureEnvelopeConfig
Field Details
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
The provider type to which the configuration setting belongs. Currently only DocuSign is
supported.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
ESignatureConfigChangeEvent
Change events are available for the object.
ESignatureConfigFeed
Feed tracking is available for the object.
ESignatureConfigHistory
History is available for tracked fields of the object.
ESignatureConfigOwnerSharingRule
Sharing rules are available for the object.
ESignatureConfigShare
Sharing is available for the object.
ESignatureEnvelopeConfig
The notification-specific settings for integrating with external eSignature providers. This object is available in API version 56.0 and later.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Details
ExpirationPeriod Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The expiration period for signing.
ExpirationWarningPeriod Type
int
62
Salesforce Contracts ESignatureEnvelopeConfig
Field Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of days before expiration for warning notifications.
FirstReminderPeriod Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The number of days between envelope delivery and the first reminder email.
IsExpirationEnabled Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether expiration is enabled.
The default value is 'false'.
IsReminderEnabled Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether reminders are enabled.
The default value is 'false'.
IsVendorDefaultNtfcnEnabled Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the envelope uses account default notification settings.
The default value is 'false'.
ReminderIntervalPeriod Type
int
Properties
Create, Filter, Group, Nillable, Sort, Update
63
Salesforce Contracts ESignatureEnvelopeConfig
Field Details
Description
The interval in days between reminder emails.
TargetObjectName Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The object to which the eSignature applies, such as an Opportunity, Quote, or Order.
Vendor Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
The eSignature provider, for example DocuSign.
VendorAccountIdentifier Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The eSignature branding identifier.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
ESignatureEnvelopeConfigChangeEvent
Change events are available for the object.
ESignatureEnvelopeConfigFeed
Feed tracking is available for the object.
ESignatureEnvelopeConfigHistory
History is available for tracked fields of the object.
ESignatureEnvelopeConfigOwnerSharingRule
Sharing rules are available for the object.
ESignatureEnvelopeConfigShare
Sharing is available for the object.
64
Salesforce Contracts ExternalDocStorageConfig
ExternalDocStorageConfig
Represents a collection of fields to configure the external document storage for an object. It includes details such as location, path, and
named credentials. For example, OneDrive is defined as an External Document Storage and is associated with the Salesforce Contract
object.
Supported Calls
create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()
Fields
Field Details
DocumentPath Type
textarea
Properties
Create, Update
Description
Specifies the path from the root in the external storage where documents are stored.
ExternalDocStorageIdentifier Type
string
Properties
Create, Filter, Group, Sort, Update
Description
Specifies the ID of the external document storage.
NamedCredentialId Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The Named Credential associated with the External Document Storage Configuration. A
named credential can be specified as an endpoint to simplify the setup of authenticated
callouts.
This field is a relationship field.
Relationship Name
NamedCredential
Relationship Type
Lookup
Refers To
NamedCredential
65
Salesforce Contracts ExternalDocStorageConfig
Field Details
RecordTypeId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The Record Type associated with the Reference Object.
This field is a relationship field.
Relationship Name
RecordType
Relationship Type
Lookup
Refers To
RecordType
StorageDriveType Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
Description
Specifies the external document storage drive. For example, Microsoft OneDrive.
Possible values are:
• MicrosoftOneDrive—Microsoft OneDrive
The default value is MicrosoftOneDrive.
TargetObject Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
Specifies the object associated with the external document storage. For example, Document
Template, Contract, All.
Possible values are:
• All
• Contract
• DocumentTemplate—Document Template
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
66
Salesforce Contracts ObjectStateActionDefinition
ExternalDocStorageConfigChangeEvent
Change events are available for the object.
ExternalDocStorageConfigFeed
Feed tracking is available for the object.
ExternalDocStorageConfigHistory
History is available for tracked fields of the object.
ExternalDocStorageConfigOwnerSharingRule
Sharing rules are available for the object.
ExternalDocStorageConfigShare
Sharing is available for the object.
ObjectStateActionDefinition
Represents the link between the object state definition and object state transition based on a defined action.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field Details
ActionType Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Specifies the action type for the object state action definition, whether it's Apex or Reference
Object.
Possible values are:
• Apex
• ReferenceObject—Reference Object
DisplayLabel Type
string
Properties
Create, Filter, Group, Sort, Update
Description
The display name of the object state action definition.
67
Salesforce Contracts ObjectStateActionDefinition
Field Details
InvocableClassName Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The name of the Apex invocable class.
InvocableMethodName Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The name of the Apex invocable class method.
IsSystem Type
boolean
Properties
Defaulted on create, Filter, Group, Sort
Description
Indicates whether the action is provided by the Salesforce (True) application or is a custom
action (False). The field is uneditable.
Name Type
string
Properties
Create, Filter, Group, idLookup, Sort
Description
The API name of the object state action definition.
OwnerId Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The name of the user who creates the object state action definition.
This field is a polymorphic relationship field.
Relationship Name
Owner
Relationship Type
Lookup
68
Salesforce Contracts ObjectStateTransitionAction
Field Details
Refers To
Group, User
ReferenceObjectId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The Reference Object associated with the Object State Action Definition.
This field is a relationship field.
Relationship Name
ReferenceObject
Relationship Type
Lookup
Refers To
OmniProcess
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
ObjectStateActionDefinitionChangeEvent
Change events are available for the object.
ObjectStateActionDefinitionFeed
Feed tracking is available for the object.
ObjectStateActionDefinitionHistory
History is available for tracked fields of the object.
ObjectStateActionDefinitionOwnerSharingRule
Sharing rules are available for the object.
ObjectStateActionDefinitionShare
Sharing is available for the object.
ObjectStateTransitionAction
Represents a junction between object state transition and object state action definition. State transition determines the valid transition
of an object from one state to another and the state action determines which action triggers which state transition.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
69
Salesforce Contracts ObjectStateTransitionAction
Fields
Field Details
DisplaySequence Type
int
Properties
Create, Filter, Group, Sort, Update
Description
Determines the display order of the object state action for the associated state transition.
Supports a whole number that's greater than 0 to define the order.
IsActive Type
boolean
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
Indicates whether the object state action definition for the specified object state transition
is active (True) or not (False).
The default value is false.
Name Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
The name of the object state action transition.
ObjectStateActionDefinitionId Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The object state action definition associated with the record.
This field is a relationship field.
Relationship Name
ObjectStateActionDefinition
Relationship Type
Lookup
Refers To
ObjectStateActionDefinition
70
Salesforce Contracts ObjectStateTransitionAction
Field Details
ObjectStateDefinitionId Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The object state definition associated with the record.
This field is a relationship field.
Relationship Name
ObjectStateDefinition
Relationship Type
Lookup
Refers To
ObjectStateDefinition
ObjectStateTransitionId Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The object state definition transition with the record.
This field is a relationship field.
Relationship Name
ObjectStateTransition
Relationship Type
Lookup
Refers To
ObjectStateTransition
OwnerId Type
reference
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
This field is a polymorphic relationship field.
Relationship Name
Owner
Relationship Type
Lookup
Refers To
Group, User
71
Salesforce Contracts Obligation
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
ObjectStateTransitionActionChangeEvent
Change events are available for the object.
ObjectStateTransitionActionFeed
Feed tracking is available for the object.
ObjectStateTransitionActionHistory
History is available for tracked fields of the object.
ObjectStateTransitionActionOwnerSharingRule
Sharing rules are available for the object.
ObjectStateTransitionActionShare
Sharing is available for the object.
Obligation
Represents an obligation between parties to fulfill agreed conditions, such as contractual commitments. The obligation commitment
assists with a strategy to achieve the desired outcome within a set timeframe and reduce risk with compliance tracking. For example,
payment due dates, contract terms, renewals. This object is available in API version 59.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field Details
AssigneeUserId Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The ID of the assignee user associated with the obligation.
This field is a relationship field.
Relationship Name
AssigneeUser
Relationship Type
Lookup
72
Salesforce Contracts Obligation
Field Details
Refers To
User
Description Type
textarea
Properties
Create, Nillable, Update
Description
The description of the obligation.
EndDate Type
date
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The end date of the obligation.
Name Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
The name of the obligation.
OtherPartyAccountId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The ID of the other party account associated with the obligation.
This field is a relationship field.
Relationship Name
OtherPartyAccount
Relationship Type
Lookup
Refers To
Account
OwnerId Type
reference
73
Salesforce Contracts Obligation
Field Details
Properties
Create, Defaulted on create, Filter, Group, Sort, Update
Description
The ID of the user that owns this record.
This field is a polymorphic relationship field.
Relationship Name
Owner
Relationship Type
Lookup
Refers To
Group, User
Party Type
picklist
Properties
Create, Filter, Group, Restricted picklist, Sort, Update
Description
The party who executes or delivers the obligation. The default value is First_Party.
Possible values are:
• FIRST_PARTY
• OTHER_PARTY
ReferenceContractId Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The contract associated with the obligation.
This field is a relationship field.
Relationship Name
ReferenceContract
Relationship Type
Lookup
Refers To
Contract
ReferenceObjectId Type
reference
Properties
Create, Filter, Group, Sort, Update
74
Salesforce Contracts Obligation
Field Details
Description
The object associated with the obligation. For example, Contract.
This field is a relationship field.
Relationship Name
ReferenceObject
Relationship Type
Lookup
Refers To
Contract
StartDate Type
date
Properties
Create, Filter, Group, Sort, Update
Description
The start date of the obligation.
State Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The start date of the obligation.
Possible values are:
• Active
• Expired
• InActive—Inactive
• OnHold—On Hold
The default value is OnHold.
Status Type
picklist
Properties
Create, Filter, Group, Sort, Update
Description
Specifies the status of the obligation.
Possible values are:
• Compliant—Compliant
• Non Compliant—Non Compliant
• At Risk—At Risk
75
Salesforce Contracts SalesContractLine
Field Details
• None—None
The default value is Compliant.
StatusChangeReason Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The reason to change the obligation status.
Type Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The type of Obligation. For example, Manufacturing Obligation, or Payment
Obligation.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
ObligationChangeEvent
Change events are available for the object.
ObligationFeed
Feed tracking is available for the object.
ObligationHistory
History is available for tracked fields of the object.
ObligationOwnerSharingRule
Sharing rules are available for the object.
ObligationShare
Sharing is available for the object.
SalesContractLine
Stores a contract's product information, including price, quantity, and components covered. This object is available in API version 56.0
and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
76
Salesforce Contracts SalesContractLine
Fields
Field Details
ContractId Type
reference
Properties
Create, Filter, Group, Sort
Description
Parent contract identifier.
This is a relationship field.
Relationship Name
Contract
Relationship Type
Lookup
Refers To
Contract
Description Type
textarea
Properties
Create, Nillable, Update
Description
Description of the contract line item.
EffectiveEndDateTime Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
End date and time for the line item.
EffectiveStartDateTime Type
dateTime
Properties
Create, Filter, Nillable, Sort, Update
Description
Start date and time for the line item.
LineItemNumber Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
77
Salesforce Contracts SalesContractLine
Field Details
Description
Indicates the line item number.
Name Type
string
Properties
Create, Filter, Group, idLookup, Sort, Update
Description
Name of the contract line item.
OpportunityProductId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the associated OpportunityLineItem.
This is a relationship field.
Relationship Name
OpportunityProduct
Relationship Type
Lookup
Refers To
OpportunityLineItem
OrderProductId Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the associated OrderItem.
This is a relationship field.
Relationship Name
OrderProduct
Relationship Type
Lookup
Refers To
OrderItem
OriginalLineItemId Type
reference
78
Salesforce Contracts SalesContractLine
Field Details
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
ID of the original line item that this line item references (for example if this line item is due
to a contract amendment).
This is a relationship field.
Relationship Name
OriginalLineItem
Relationship Type
Lookup
Refers To
SalesContractLine
Product2Id Type
reference
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Product ID associated with the line item.
This is a relationship field.
Relationship Name
Product2
Relationship Type
Lookup
Refers To
Product2
ProductCode Type
textarea
Properties
Create, Nillable, Update
Description
Product code associated with the line item.
Quantity Type
double
Properties
Create, Filter, Nillable, Sort, Update
Description
Product quantity associated with the line item.
79
Salesforce Contracts SalesContractLine
Field Details
Status Type
picklist
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
Status of the contract line item.
Possible values are:
• Active
• Inactive
TotalPrice Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
Total price of the line item.
UnitPrice Type
currency
Properties
Create, Filter, Nillable, Sort, Update
Description
Unit price of the line item.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
SalesContractLineChangeEvent
Change events are available for the object.
SalesContractLineFeed
Feed tracking is available for the object.
SalesContractLineHistory
History is available for tracked fields of the object.
SalesContractLineOwnerSharingRule
Sharing rules are available for the object.
SalesContractLineShare
Sharing is available for the object.
80
Salesforce Contracts UserEsignVendorIdentifier
UserEsignVendorIdentifier
Used for integrating eSignature users. This object is available in API version 56.0 and later.
Supported Calls
create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(),
retrieve(), search(), undelete(), update(), upsert()
Fields
Field Details
ExternalUserIdentifier Type
string
Properties
Create, Filter, Group, Nillable, Sort, Update
Description
The user identifier used by the eSignature provider.
UserId Type
reference
Properties
Create, Filter, Group, Sort, Update
Description
The Salesforce user identifier.
This is a relationship field.
Relationship Name
User
Relationship Type
Lookup
Refers To
User
Vendor Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
The eSignature provider.
Possible values are:
• DocuSign
The default value is 'DocuSign’.
81
Salesforce Contracts Apex Reference
Field Details
VendorType Type
picklist
Properties
Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
Description
Indicates the type of vendor.
Possible values are:
• Internal
• eSignature
The default value is 'eSignature'.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object.
Otherwise, they’re available in the specified API version and later.
UserEsignVendorIdentifierChangeEvent
Change events are available for the object.
UserEsignVendorIdentifierFeed
Feed tracking is available for the object.
UserEsignVendorIdentifierHistory
History is available for tracked fields of the object.
UserEsignVendorIdentifierOwnerSharingRule
Sharing rules are available for the object.
UserEsignVendorIdentifierShare
Sharing is available for the object.
Apex Reference
This Apex reference goes into detail about the built-in Apex classes and interfaces grouped by namespace for Salesforce Contracts.
For Apex-related objects and SOAP API calls, see Objects and SOAP API Calls and Headers for Apex in the SOAP API Developer Guide.
ind_docgen_api Namespace
The ind_docgen_api namespace provides class for scheduling Envelope Status updates.
industries_clm Namespace
The industries_clm namespace allows user to provide custom logic for any specific task permitted by salesforce. For example,
Custom Document Template Filtering, which allows user to provide the filtering logic on Document tab under Contract.
industries_docgen Namespace
The industries_docgen namespace provides classes and methods for document generation and permission management
in Salesforce Industries.
82
Salesforce Contracts ind_docgen_api Namespace
ind_docgen_api Namespace
The ind_docgen_api namespace provides class for scheduling Envelope Status updates.
The following are the classes in the ind_docgen_api namespace.
EnvelopeStatusScheduler Class
The ind_docgen_api.EnvelopeStatusScheduler class schedules Envelope Status updates.
OpenInterface Interface
The OpenInterface provides user the capability to provide custom logic for task permitted by Salesforce.
EnvelopeStatusScheduler Class
The ind_docgen_api.EnvelopeStatusScheduler class schedules Envelope Status updates.
Namespace
ind_docgen_api
Example
ind_docgen_api.EnvelopeStatusScheduler envelopeScheduler = new
ind_docgen_api.EnvelopeStatusScheduler();
System.schedule('Update Docusign Envelope Job 1', '0 0 * * * ?', envelopeScheduler);
System.schedule('Update Docusign Envelope Job 2', '0 15 * * * ?', envelopeScheduler);
System.schedule('Update Docusign Envelope Job 3', '0 30 * * * ?', envelopeScheduler);
System.schedule('Update Docusign Envelope Job 4', '0 45 * * * ?', envelopeScheduler);
EnvelopeStatusScheduler Methods
EnvelopeStatusScheduler Methods
The following are methods for EnvelopeStatusScheduler.
execute(ctx)
Executes the scheduled Apex job for Envelope Status Updates.
execute(ctx)
Executes the scheduled Apex job for Envelope Status Updates.
Signature
public void execute(System.SchedulableContext ctx)
83
Salesforce Contracts ind_docgen_api Namespace
Parameters
ctx
Type: System.SchedulableContext
Contains the job ID.
Return Value
Type: void
OpenInterface Interface
The OpenInterface provides user the capability to provide custom logic for task permitted by Salesforce.
Namespace
ind_docgen_api
OpenInterface Methods
OpenInterface Example Implementation
OpenInterface Methods
The following are methods for OpenInterface.
Signature
public Boolean invokeMethod(String var1, Map<String,ANY> var2, Map<String,ANY> var3)
Parameters
var1
Type: String
Contains the name of the method that is supposed to be implemented from invoke method.
var2
Type: Map<String,ANY>
Contains the inputs as per the use-case.
var3
Type: Map<String,ANY>
84
Salesforce Contracts ind_docgen_api Namespace
Return Value
Type: Boolean
true or false
private void getTemplateList(Map < String, Object > inputMap, Map < String, Object > outMap)
{
String contractId = (String) inputMap.get('contractId');
String usageType = (String) inputMap.get('usageType');
String billingCountry;
List<Contract> contractList = [SELECT BillingCountry, Id FROM Contract where Id =
:contractId];
if(!contractList.isEmpty()) {
Contract contract = contractList.get(0);
billingCountry = contract.BillingCountry != null ? contract.BillingCountry : '';
}
List<DocumentTemplate> templist;
String objName = 'DocumentTemplate';
try {
if(billingCountry.equalsIgnoreCase('India')) {
templist = [select id, isActive, name, type, versionNumber from DocumentTemplate where
IsActive=true and Type = 'MicrosoftWord' and Name like '%APAC%'
order by Name];
} else {
templist = [select id, isActive, name, type, versionNumber from DocumentTemplate where
IsActive=true and Type = 'MicrosoftWord' order by Name];
}
} catch (Exception e) {
throw e;
}
if (tempList != null && tempList.size() > 0) {
outMap.put('documentTemplateList', tempList);
}
}
}
85
Salesforce Contracts industries_clm Namespace
industries_clm Namespace
The industries_clm namespace allows user to provide custom logic for any specific task permitted by salesforce. For example,
Custom Document Template Filtering, which allows user to provide the filtering logic on Document tab under Contract.
The following are the classes in the industries_clm namespace.
OpenInterface Interface
The OpenInterface provides user the capability to provide custom logic for task permitted by Salesforce.
OpenInterface Interface
The OpenInterface provides user the capability to provide custom logic for task permitted by Salesforce.
Namespace
industries_clm
OpenInterface Methods
OpenInterface Example Implementation
OpenInterface Methods
The following are methods for OpenInterface.
Signature
public Boolean invokeMethod(String var1, Map<String,Object> var2, Map<String,Object>
var3)
Parameters
var1
Type: String
Contains the name of the method that is supposed to be implemented from invoke method.
var2
Type: Map<String,ANY>
Contains the inputs as per the use-case.
86
Salesforce Contracts industries_clm Namespace
var3
Type: Map<String,ANY>
Returns the output as per the use-case.
Return Value
Type: Boolean
true or false
private void getTemplateList(Map < String, Object > inputMap, Map < String, Object > outMap)
{
String contractId = (String) inputMap.get('contractId');
String usageType = (String) inputMap.get('usageType');
String billingCountry;
List<Contract> contractList = [SELECT BillingCountry, Id FROM Contract where Id =
:contractId];
if(!contractList.isEmpty()) {
Contract contract = contractList.get(0);
billingCountry = contract.BillingCountry != null ? contract.BillingCountry : '';
}
List<DocumentTemplate> templist;
String objName = 'DocumentTemplate';
try {
if(billingCountry.equalsIgnoreCase('India')) {
templist = [select id, isActive, name, type, versionNumber from DocumentTemplate where
IsActive=true and Type = 'MicrosoftWord' and Name like '%APAC%'
order by Name];
} else {
templist = [select id, isActive, name, type, versionNumber from DocumentTemplate where
IsActive=true and Type = 'MicrosoftWord' order by Name];
}
} catch (Exception e) {
throw e;
}
if (tempList != null && tempList.size() > 0) {
outMap.put('documentTemplateList', tempList);
}
87
Salesforce Contracts industries_docgen Namespace
}
}
industries_docgen Namespace
The industries_docgen namespace provides classes and methods for document generation and permission management in
Salesforce Industries.
The following are the classes in the industries_docgen namespace.
DocGenPermsAndAccessChecksService Class
The DocGenPermsAndAccessChecksService class contains methods to check permissions and settings related to
document generation and integration features.
DocumentGenerationProcess Class
The DocumentGenerationProcess class provides methods to manage document generation processes.
DocumentTemplate Class
The DocumentTemplate class provides methods to manage document generation templates.
DocGenPermsAndAccessChecksService Class
The DocGenPermsAndAccessChecksService class contains methods to check permissions and settings related to document
generation and integration features.
Namespace
industries_docgen
Example
industries_docgen.DocGenPermsAndAccessChecksService.isDesigner(UserInfo.getOrganizationId(),
userInfo.getUserId(), 'DocGenDesigner');
industries_docgen.DocGenPermsAndAccessChecksService.isRuntimeUser(UserInfo.getOrganizationId(),
userInfo.getUserId(), 'DocGenRuntimeUser');
industries_docgen.DocGenPermsAndAccessChecksService.isRuntimeCCUser(UserInfo.getOrganizationId(),
userInfo.getUserId(),'DocGenRuntimeCCUser');
This Apex code sample checks whether a user has specific docgen permissions.
DocGenPermsAndAccessChecksService Methods
DocGenPermsAndAccessChecksService Methods
The following are methods for DocGenPermsAndAccessChecksService.
hasDocGenMetadataSetting(orgId, orgPreference)
Checks whether the DocGen metadata setting is enabled for the org (true) or not (false).
88
Salesforce Contracts industries_docgen Namespace
hasDocGenOrgPerm(orgId, orgPermission)
Checks whether the org has the DocGen permission (true) or not (false).
hasMS365IntegrationSettingOrgPerm(orgId, orgPermission)
Checks whether the org has a Microsoft 365 integration setting permission enabled (true) or not (false).
hasOmnistudioOrgPerm(orgId, orgPermission)
Checks whether the org has Omnistudio permission enabled (true) or not (false).
isDesigner(orgId, userId, userPerm)
Checks whether the user has designer permissions enabled (true) or not (false).
isRuntimeCCUser(orgId, userId, userPerm)
Checks whether the user has runtime customer community user permissions (true) or not (false).
isRuntimeUser(orgId, userId, userPerm)
Checks whether the user has runtime user permissions (true) or not (false).
hasDocGenMetadataSetting(orgId, orgPreference)
Checks whether the DocGen metadata setting is enabled for the org (true) or not (false).
Signature
public static Boolean hasDocGenMetadataSetting(String orgId, String orgPreference)
Parameters
orgId
Type: String
ID of the org.
orgPreference
Type: String
Name of the DocGen metadata setting.
Return Value
Type: Boolean
hasDocGenOrgPerm(orgId, orgPermission)
Checks whether the org has the DocGen permission (true) or not (false).
Signature
public static Boolean hasDocGenOrgPerm(String orgId, String orgPermission)
Parameters
orgId
Type: String
89
Salesforce Contracts industries_docgen Namespace
ID of the org.
orgPermission
Type: String
Name of the permission.
Return Value
Type: Boolean
hasMS365IntegrationSettingOrgPerm(orgId, orgPermission)
Checks whether the org has a Microsoft 365 integration setting permission enabled (true) or not (false).
Signature
public static Boolean hasMS365InetgrationSettingOrgPerm(String orgId, String
orgPermission)
Parameters
orgId
Type: String
ID of the org.
orgPermission
Type: String
Name of the permission.
Return Value
Type: Boolean
hasOmnistudioOrgPerm(orgId, orgPermission)
Checks whether the org has Omnistudio permission enabled (true) or not (false).
Signature
public static Boolean hasOmnistudioOrgPerm(String orgId, String orgPermission)
Parameters
orgId
Type: String
ID of the org.
orgPermission
Type: String
Name of the Omnistudio permission.
90
Salesforce Contracts industries_docgen Namespace
Return Value
Type: Boolean
Signature
public static Boolean isDesigner(String orgId, String userId, String userPerm)
Parameters
orgId
Type: String
ID of the org.
userId
Type: String
ID of the user.
userPerm
Type: String
Name of the user permission to check for designer status.
Return Value
Type: Boolean
SEE ALSO:
Salesforce Help : Permission Set Licenses for Omnistudio Document Generation
Signature
public static Boolean isRuntimeCCUser(String orgId, String userId, String userPerm)
Parameters
orgId
Type: String
ID of the org.
userId
Type: String
ID of the user.
91
Salesforce Contracts industries_docgen Namespace
userPerm
Type: String
Name of the user permission to check for runtime customer community user status.
Return Value
Type: Boolean
SEE ALSO:
Salesforce Help : Permission Set Licenses for Omnistudio Document Generation
Signature
public static Boolean isRuntimeUser(String orgId, String userId, String userPerm)
Parameters
orgId
Type: String
ID of the org.
userId
Type: String
ID of the user.
userPerm
Type: String
Name of the user permission to check for runtime user status.
Return Value
Type: Boolean
DocumentGenerationProcess Class
The DocumentGenerationProcess class provides methods to manage document generation processes.
Namespace
industries_docgen
Example
Map<String, Object> parameters = new Map<String, Object>();
parameters.put('requestText','{}');
92
Salesforce Contracts industries_docgen Namespace
parameters.put('type','GenerateAndConvert');
parameters.put('status','InProgress');
parameters.put('title','TestTitle');
//industries_docgen.DocumentGenerationProcess.createDocumentGenerationProcess(parameters);
Type type = Type.forName('industries_docgen.DocumentGenerationProcess');
System.Callable docgen = (System.Callable) type.newInstance();
docgen.Call('createDocumentGenerationProcess',parameters);
This Apex code creates a DocumentGenerationProcess record for server-side document generation. This code uses a Map as
input that contains all the required fields to create an entry in the database.
DocumentGenerationProcess Methods
DocumentGenerationProcess Methods
The following are methods for DocumentGenerationProcess.
Call(methodName, inputMap)
Invokes a method with specified input parameters for the document generation process.
Call(methodName, inputMap)
Invokes a method with specified input parameters for the document generation process.
Signature
public Object Call(String methodName, Map<String,Object> inputMap)
Parameters
methodName
Type: String
Name of the method to be called.
inputMap
Type: Map<String,Object>
Map that contains input parameters for the method that is called.
Return Value
Type: Object
DocumentTemplate Class
The DocumentTemplate class provides methods to manage document generation templates.
Namespace
industries_docgen
93
Salesforce Contracts Salesforce Contracts Resources
Example
System.Callable connect = (System.Callable) type.newInstance();
Map<String, Object> inputMap = new Map<String, Object>();
inputMap.put('documentTemplateId', templateId);
docTemplate =
SObjectProxy.of(DocGenObjectMappings.getSObjectType(DocGenObjectMappings.DOCUMENT_TEMPLATE_STR).newSObject());
Map<String, Object> mapData = (Map<String,
Object>)connect.Call('getNamespaceByDocumentTemplateId', inputMap);
This GET request retrieves the Namespace field from the DocumentTemplate entity, using the documentTemplate ID as input.
DocumentTemplate Methods
DocumentTemplate Methods
The following are methods for DocumentTemplate.
Call(methodName, inputMap)
Invokes a method with input parameters to manage document templates.
Call(methodName, inputMap)
Invokes a method with input parameters to manage document templates.
Signature
public Object Call(String methodName, Map<String,ANY> inputMap)
Parameters
methodName
Type: String
Name of the method to be called.
inputMap
Type: Map<String,ANY>
Map that contains input parameters for the method that is called.
Return Value
Type: Object
REST Reference
You can access Salesforce Contracts APIs using REST endpoints. These REST APIs follow similar conventions as Connect REST APIs.
94
Salesforce Contracts REST Reference
REST Reference
You can access Salesforce Contracts APIs using REST endpoints. These REST APIs follow similar conventions as Connect REST APIs.
To understand the architecture, authentication, rate limits, and how the requests and responses work, see Connect REST API Developer
Guide.
Resources
Here’s a list of Salesforce Contracts API resources.
Request Bodies
Here’s a list of Salesforce Contracts API request bodies.
Response Bodies
Here’s a list of Salesforce Contracts response bodies.
Resources
Here’s a list of Salesforce Contracts API resources.
95
Salesforce Contracts REST Reference
Resource Description
/connect/clause-library/clause-category-configurations Access list of clause categories from the configuration.
Example URI
https://yourInstance.salesforce.com/services/data/61.0/connect/clause-library/clause-category-configurations
Available version
57.0
HTTP methods
GET
Request parameters for GET
usageType String The usage type for the clause category. Required 57.0
Valid values are:
• Contract Clause Category
• Disclosure Category
96
Salesforce Contracts REST Reference
Example URI
https://yourInstance.salesforce.com/services/data/61.0/connect/clause-library/document-clauses/fields?clauseSetId={id}
Available version
57.0
HTTP methods
GET
Query parameters for GET
97
Salesforce Contracts REST Reference
Example URI
https://yourInstance.salesforce.com/services/data/61.0/connect/clause-library/document-clause-sets
Available version
57.0
HTTP methods
GET
Query parameters for GET
name String The name of the clause set used for Required 57.0
filtering.
CLM Resources
Manage Salesforce Contracts CLM resources. Check in and check out a contract document. Get and delete content document details.
Execute actions for a contract based on the status. Update and create contracts. Get and create contract document versions. Get the
status of document generation process. Get the list of configured templates for a usage type. Get a list of actions possible for a particular
contract. Lock and unlock an active contract document version. Change a template in a contract document version.
Available resources are:
Resource Description
/connect/clm/contract-document-version/${contractDocumentVersionId}/ Check in a contract document version using contract document
checkIn version ID.
/connect/clm/contract/${contractId} Execute possible actions for a contract based on the status. Actions
can trigger work flows and change the status for a contract.
98
Salesforce Contracts REST Reference
Resource Description
/connect/clm/contract/${contractId}/ Get and create contract document versions.
contract-document-version
/connect/clm/document-generation-process/status Get the status of document generation process for a given contract
document version ID.
99
Salesforce Contracts REST Reference
/connect/clm/contract-document-version/${contractDocumentVersionId}/checkIn
Available version
56.0
HTTP methods
PATCH
Example for PATCH
https://yourInstance.salesforce.com/services/data/v56.0/connect/clm/contract-document-version/${contractDocumentVersionId}/checkIn
/connect/clm/contract-document-version/${contractDocumentVersionId}/checkout
Available version
56.0
HTTP methods
POST
Example for POST
https://yourInstance.salesforce.com/services/data/v61.0/connect/clm/contract-document-version/$0qtXXXXXXX/checkout
{
"templateId": "2dtxx000000004rAAA",
"isExternalReviewImport": false,
"externalReviewType": "OnlineMicrosoft365"
}
Properties
100
Salesforce Contracts REST Reference
templateId String Template ID with key prefix 2dt used to Required 56.0
generate document.
/connect/clm/contract-document-version/${contractDocumentVersionId}/content-documents
Available version
56.0
HTTP methods
GET, DELETE, PATCH
Example for GET
https://yourInstance.salesforce.com/services/data/v56.0/connect/clm/contract-document-version/$0qtXXXXXXX/content-documents
https://yourInstance.salesforce.com/services/data/v56.0/connect/clm/contract-document-version/$0qtXXXXXXX}/content-documents?contentDocumentId=$069XXXXXXX
https://yourInstance.salesforce.com/services/data/v60.0/connect/clm/contract-document-version/$0qtXXXXXXX/content-document?contentDocumentId=
069XXXXXXX&share=true
101
Salesforce Contracts REST Reference
{
"contractDocumentVersionId": "0qtXXXXXXX" // The contractDocumentVersionId for which
the attachment is to be Deleted.
"contentDocumentId" : "069XXXXXXX" // The ContentDocumentId is ID of ContentDocument
created for attachment
}
Available version
56.0
HTTP methods
PATCH, POST
Example for PATCH
https://yourInstance.salesforce.com/services/data/v56.0/connect/clm/contract
https://yourInstance.salesforce.com/services/data/v56.0/connect/clm/contract
Request body
JSON example for creating and updating contract
{
"sourceObjectId" : "006xx000001a4KaAAI",
102
Salesforce Contracts REST Reference
"templateName" : "Value1",
"isAutoDocgenRequired" :true/false
}
Properties
Response body
Contract Output Response Representation
Contract Actions
Execute possible actions for a contract based on the status. Actions can trigger work flows and change the status for a contract.
Resource
/connect/clm/contract/${contractId}
Available version
56.0
HTTP methods
PATCH
Example for PATCH
https://yourInstance.salesforce.com/services/data/v56.0/clm/contract/${contractId}
{
"actionApiName" : "updateEnvelopeStatus",
...."actionId" : //object state action definition id,
"actionData":{
"isUpdateEnvelopeStatusSuccess": true
}
}
103
Salesforce Contracts REST Reference
Properties
Note: For any request, either actionApiName or actionId must be passed. If none passed, the application raises
an exception.
Response body for PATCH
Generic Output Representation
/connect/clm/contract-document-version/${contractDocumentVersionId}
Available version
56.0
HTTP methods
PATCH
Example for PATCH
https://yourInstance.salesforce.com/services/data/v56.0/connect/clm/contract-document-version/${contractDocumentVersionId}
{
"templateId": "2dtxx000000004rAAA",
"isExternalReviewImport": false,
"externalReviewType": "OnlineMicrosoft365"
}
104
Salesforce Contracts REST Reference
Properties
templateId String Template ID with key prefix 2dt used to Required 56.0
generate document.
/connect/clm/contract/${contractId}/contract-document-version
Available version
56.0
HTTP methods
GET, POST
Example for GET
https://yourInstance.salesforce.com/services/data/v56.0/connect/clm/contract/${contractId}/contract-document-version
https://yourInstance.salesforce.com/services/data/v56.0/connect/clm/contract/${contractId}/contract-document-version?contractDocumentVersionId=${contractDocumentVersionId}
https://yourInstance.salesforce.com/services/data/v56.0/connect/clm/contract/{contractId}/contract-document-version
105
Salesforce Contracts REST Reference
{
"templateId": "2dtxx000000004rAAA",
"isExternalReviewImport": false,
"externalReviewType": "OnlineMicrosoft365"
}
Properties
templateId String Template ID with key prefix 2dt used to Required 56.0
generate document.
Available version
56.0
HTTP methods
GET
Example for GET
https://yourInstance.salesforce.com/services/data/v56.0/connect/clm/document-generation-process/status?contractDocumentVersionId=<contractDocumentVersionId>
106
Salesforce Contracts REST Reference
Document Template
Get the list of configured templates for a usage type.
Resource
/connect/clm/document-template
Available version
56.0
HTTP methods
GET
Example for GET
https://yourInstance.salesforce.com/services/data/v56.0/connect/clm/document-template?usageType=<usageType>&isActive=<true/false>&type=<>
/connect/clm/contract/${contractId}/contract-actions
107
Salesforce Contracts REST Reference
Available version
56.0
HTTP methods
GET
Example for GET
https://yourInstance.salesforce.com/services/data/v56.0/connect/clm/contract/${contractId}/contract-actions
/connect/clm/contract-document-version/${contractDocumentVersionId}/lock
Available version
56.0
HTTP methods
PATCH
Example for PATCH
https://yourInstance.salesforce.com/services/data/v56.0/connect/clm/contract-document-version/${contractversionid}/lock
/connect/clm/contract-document-version/${contractDocumentVersionId}/unlock
Available version
56.0
HTTP methods
PATCH
Example for PATCH
https://yourInstance.salesforce.com/services/data/v56.0/connect/clm/contract-document-version/${contractDocumentVersionId}/unlock
108
Salesforce Contracts REST Reference
Resource Description
/connect/clm/extraction-context-mappings Create extraction context-mapping details that show how extracted
(POST) data is associated with Salesforce fields.
Example
https://yourInstance.salesforce.com/services/data/v61.0/connect/clm/extraction-context-mappings
Available version
61.0
HTTP methods
POST
Request body for POST
JSON example
{
"ContextUsecaseMapping": {
"templateName": "ContractExtractionTemplate",
"contextDefinitionDeveloperName": "ContractExtractionContextDefinition",
"mappingName": "ContractExtractionMappingName",
"targetObject": "Contract",
"recordType": "CLM"
},
"contextAttributeMapping": [
{
"attributeId": "11nxx000001hOozAAE",
"description": "extract startDate from the document"
109
Salesforce Contracts REST Reference
},
{
"attributeId": "11nxx000001hOozAAV",
"description": "extract startDate from the document"
},
{
"attributeId": "11nxx000001hOozAAR",
"description": "extract startDate from the document"
}
]
}
Properties
context Extraction Context Details of the use case for which the Yes 61.0
UseCase Use Case Mapping mapping is defined.
Mapping Input
Available version
61.0
HTTP methods
DELETE GET PATCH
Example for DELETE
https://yourInstance.salesforce.com/services/data/v61.0/connect/clm/extraction-context-mappings/11jSB000002XTWjYAO
https://yourInstance.salesforce.com/services/data/v61.0/connect/clm/extraction-context-mappings/11jSB000002XTWjYAO
https://yourInstance.salesforce.com/services/data/v61.0/connect/clm/extraction-context-mappings/11jSB000002XTWjYAO
110
Salesforce Contracts REST Reference
Properties
context Extraction Context Details of the use case for which the Yes 61.0
UseCase Use Case Mapping mapping is defined.
Mapping Input
111
Salesforce Contracts REST Reference
Resource Description
/connect/clm/cc/contract/${contractId}/contract-document-version Get latest details of a contract document version based on a
(GET) contract ID.
Resource example
https://yourInstance.salesforce.com/services/data/v61.0/connect/clm/cc/contract/${contractId}/contract-document-version?showDetails=true
Available version
60.0
HTTP methods
GET
Request parameters for GET
112
Salesforce Contracts REST Reference
Example
https://yourInstance.salesforce.com/services/data/v61.0/connect/clm/cc/documentRecipient?contractDocumentVersion=11nxx000001hOozAAE
Available version
61.0
HTTP methods
GET
Request parameters for GET
Resource Description
/connect/docgen/document-templates Access document template actions, including template creation
with the Document Template Designer.
GET Example
https://yourInstance.salesforce.com/services/data/v61.0/connect/docgen/document-templates?offset=${offset}&limit=${limit}&searchString=${searchString}
PATCH Example
https://yourInstance.salesforce.com/services/data/v61.0/connect/docgen/document-templates?documentTemplateId=${documentTemplateId}
113
Salesforce Contracts REST Reference
POST Example
https://yourInstance.salesforce.com/services/data/v61.0/connect/docgen/document-templates?documentTemplateId=${documentTemplateId}&action=${action}
Available version
60.0
HTTP methods
GET, PATCH, POST
Request parameters for GET
searchString String Search term that is used to retrieve a list Optional 60.0
of document templates.
Properties
114
Salesforce Contracts REST Reference
tokenMapping String Processing method for data that can Optional 60.0
MethodType originate from the same source object.
115
Salesforce Contracts REST Reference
Properties
116
Salesforce Contracts REST Reference
tokenMapping String Processing method for the data that can Required 60.0
MethodType originate from same source object.
Resource Description
/connect/external-document/save Save external documents.
Available version
58.0
117
Salesforce Contracts REST Reference
https://yourInstance.salesforce.com/services/data/v58.0/connect/external-document?externalDocumentId=${externalDocumentId}&isAsync=false
HTTP methods
PUT
Request body for PUT
JSON example
{
"externalDocumentId" : "id",
"isAsync" : "false",
"metadata": {
"sections" : [
{
"guid": "guid1",
"name": "test1",
"isReadonly": false
},
{
"guid": "guid2",
"name": "test2",
"isReadonly": false
}
],
"objectReferences" :[
{
"objectType": "clause",
"objectId": "clauseid1",
"usages": {
"sectionIds": [
"guid1",
"guid2"
],
"usedInDocument": true
}
},
{
"objectType": "clause",
"objectId": "clauseid2",
"usages": {
"sectionIds": [
"guid1",
"guid2"
],
"usedInDocument": false // points to if this object is used in
document as well without sections
}
}
]
}
}
118
Salesforce Contracts REST Reference
Properties
Example URI
https://yourInstance.salesforce.com/services/data/v58.0/connect/external-document
Available version
58.0
Example for GET
Note: You can access the external document details using the reference object such as document template, contract document
version or using the external document ID.
https://yourInstance.salesforce.com/services/data/v58.0/connect/external-document?externalDocumentId=${externalDocumentId}
https://yourInstance.salesforce.com/services/data/v58.0/connect/external-document?refObjectId=${refObjectId}
https://yourInstance.salesforce.com/services/data/v58.0/connect/external-document?externalDocumentId=${externalDocumentId}&refObjectId=${refObjectId}
https://yourInstance.salesforce.com/services/data/v58.0/connect/external-document
HTTP methods
GET, POST
Query parameters for GET
119
Salesforce Contracts REST Reference
{
"refObjectId": "",
"contentversionId": "",
"documentNamePrefix": "namespaceprefix",
"isAsync": true
}
Properties
Example
https://yourInstance.salesforce.com/services/data/v61.0/connect/clm/cc/external-document?contractDocumentVersion=11nxx000001hOozAAE
Available version
61.0
HTTP methods
GET
120
Salesforce Contracts REST Reference
E-signature Resources
Manage Salesforce Contracts e-signature process. Users can view list of documents sent for e-signature and recipients. Update e-signature
envelope status, notification settings and get e-signature signer roles.
Available resources are:
Resource Description
/connect/e-sign/signature-requests/${sourceObjectId}/ Send document envelope to vendor for e-signature.
envelope/send
121
Salesforce Contracts REST Reference
E-signature Recipients
Get list of e-signature recipients.
E-signature Signer Roles
Get e-signature signer roles.
Available version
56.0
HTTP methods
GET
Example
https://yourInstance.salesforce.com/services/data/v56.0/connect/e-sign/documents?sourceObjectId=<sourceObjectId>&documentSelector=<customClassName>
E-signature Envelope
Send document envelope to vendor for e-signature.
Resource
/connect/e-sign/signature-requests/${sourceObjectId}/envelope/send
Available version
56.0
HTTP methods
POST
Example
https://yourInstance.salesforce.com/services/data/v56.0/connect/e-sign/signature-requests/{sourceObjectId}/envelope/send
122
Salesforce Contracts REST Reference
JSON example
{
"emailSettings" : { // API: required, UI: required
"emailSubject": "",// API: required,
"emailBody": ""
},
"vendor": "Docusign",// API: required,
"recipients": {// API: required,
"signers": [{// API: required,
"name": "",// API: required,
"email": "",// API: required,
"routingOrder": "",// API: required,
"recipientId": "",// API: required,
"signerRole": "",// API: required,
"recipientType": "",// API: required,
"recipientLocale": "",
"phone": "",
"emailNotification": {
"emailSubject": "",
"emailBody": "",
"supportedLanguage": ""
}
}
],
"inPersonSigners": [{
"name": "",
"email": "",
"routingOrder": "",
"recipientId": "",
"signerRole": "",
"emailNotification": {
"emailSubject": "",
"emailBody": "",
"supportedLanguage": ""
}
}
],
"certifiedDeliveries": [{
"name": "",
"email": "",
"routingOrder": "",
"recipientId": "",
"signerRole": "",
"emailNotification": {
"emailSubject": "",
"emailBody": "",
"supportedLanguage": ""
}
}
],
"carbonCopies": [{
"name": "",
"email": "",
123
Salesforce Contracts REST Reference
"routingOrder": "",
"recipientId": "",
"signerRole": "",
"emailNotification": {
"emailSubject": "",
"emailBody": "",
"supportedLanguage": ""
}
}
]
},
"documents": [{ // API: required
"name": "",// API: required,
"sourceId": "",// API: required,
"fileExtension": "",// API: required,
"sourceType": "",// API: required,
"documentId": ""// API: required,
}
],
"notificationSettings": {
"useAccountDefaults": "",
"reminders": {
"reminderEnabled": "",
"reminderDelay": "",
"reminderFrequency": ""
},
"expirations": {
"expireEnabled": "",
"expireAfter": "",
"expireWarn": ""
}
}
}
Properties
124
Salesforce Contracts REST Reference
/connect/e-sign/signature-requests/${sourceObjectId}/envelopes/status
Available version
56.0
HTTP methods
PATCH
Example
https://yourInstance.salesforce.com/services/data/v56.0/connect/e-sign/signature-requests/{sourceObjectId}/envelopes/status
/connect/e-sign/signature-requests/${sourceObjectId}/envelopes/void
Available version
56.0
HTTP methods
PATCH
Example
https://yourInstance.salesforce.com/services/data/v56.0/connect/e-sign/signature-requests/{sourceObjectId}/envelopes/void
125
Salesforce Contracts REST Reference
JSON example
{
"voidedReason": "",//required
"senderEmail": ""
}
Properties
voidedReason String Reason for which the envelope is being Required 56.0
voided.
E-signature Notification
Get e-signature notification settings.
Resource
/connect/e-sign/notification-settings
Available version
56.0
HTTP methods
GET
Example
https://yourInstance.salesforce.com/services/data/v56.0/connect/e-sign/notification-settings?sourceObjectId=<sourceObjectId>
E-signature Recipients
Get list of e-signature recipients.
126
Salesforce Contracts REST Reference
Resource
/connect/e-sign/recipients
Available version
56.0
HTTP methods
GET
Example
https://yourInstance.salesforce.com/services/data/v56.0/connect/e-sign/recipients?sourceObjectId=<sourceObjectId>&recipientSelector=<recipientCustomClassName>
Available version
56.0
HTTP methods
GET
Example for GET
https://yourInstance.salesforce.com/services/data/v56.0/connect/e-sign/signer-roles
Request Bodies
Here’s a list of Salesforce Contracts API request bodies.
127
Salesforce Contracts REST Reference
Contract Input
Input to create and update contract.
Document Template Request
Input representation of a document template resource.
Document Template Update Input
Input representation to update document template.
Envelope Documents Input
Input to get document details for e-signature.
Envelope Email Notification Input
Input to get email notification details.
Envelope Email Settings Input
Email settings input to get email details from API.
Envelope Notification Expiration Input
Input to get notification expiration information.
Envelope Notification Reminder Input
Input to get notification reminder information for e-signature document.
Envelope Notification Input
Input to get notification information for e-signature.
Envelope Recipient Details Input
Input to get recipient details.
Envelope Recipients Input
Input to get different recipients list.
Envelope Send Input
Input request to send e-signature details from API.
Envelope Void Input
Input to get void envelope related details.
External Document Creation Input
Input representation of the request to create an external document.
External Document Metadata
Input representation of external document metadata.
Extraction Context Attribute Mapping Input
Input representation of attribute mappings used in the extraction context.
Extraction Context Mapping Input
Input representation of a extraction context mapping.
Extraction Context Use Case Mapping Input
Input representation of the use case-mapping configuration in the extraction context.
Object Reference Input
Input representation of object reference.
Section Input
Input representation of a section.
128
Salesforce Contracts REST Reference
{
"actionApiName" : "updateEnvelopeStatus",
...."actionId" : //object state action definition id,
"actionData":{
"isUpdateEnvelopeStatusSuccess": true
}
}
Properties
actionId String ID for Object state Action Definition record. Optional 57.0
actionData Map<String, Action body with supported format string. Optional 57.0
String>
Note: For any request, either actionApiName or actionId must be passed. If none passed, the application raises an
exception.
Contract Input
Input to create and update contract.
JSON example for creating and updating contract
{
"sourceObjectId" : "006xx000001a4KaAAI",
"templateName" : "Value1",
129
Salesforce Contracts REST Reference
"isAutoDocgenRequired" :true/false
}
Properties
Properties
130
Salesforce Contracts REST Reference
tokenMapping String Processing method for the data that can Required 60.0
MethodType originate from same source object.
tokenMapping String Mapping type for tokens of the document Required 60.0
Type template.
Properties
131
Salesforce Contracts REST Reference
tokenMapping String Processing method for data that can Optional 60.0
MethodType originate from the same source object.
132
Salesforce Contracts REST Reference
expireWarn String Integer that specifying the number of days Optional 56.0
before the envelope expires that an
expiration warning email is sent to the
recipient; if set to 0 (zero), no warning
email is sent.
133
Salesforce Contracts REST Reference
emailNotification EnvelopeSendEmail Complex type that has information for Optional 56.0
NotificationRequest setting the language for the recipients
email information (if provided for one
recipient it overrides the emailSubject and
emailBody, also you must provide
emailNotification for all recipients).
parentSignerName String Parent signer name for in person signers. Optional 56.0
134
Salesforce Contracts REST Reference
routingOrder Integer Specifies the routing order of the recipient Required 56.0
in the envelope.
signerRole Integer Indicates the index or order of the signer Required 56.0
in the signature tabs.
135
Salesforce Contracts REST Reference
"emailBody": ""
},
"vendor": "Docusign",// API: required,
"recipients": {// API: required,
"signers": [{// API: required,
"name": "",// API: required,
"email": "",// API: required,
"routingOrder": "",// API: required,
"recipientId": "",// API: required,
"signerRole": "",// API: required,
"recipientType": "",// API: required,
"recipientLocale": "",
"phone": "",
"emailNotification": {
"emailSubject": "",
"emailBody": "",
"supportedLanguage": ""
}
}
],
"inPersonSigners": [{
"name": "",
"email": "",
"routingOrder": "",
"recipientId": "",
"signerRole": "",
"emailNotification": {
"emailSubject": "",
"emailBody": "",
"supportedLanguage": ""
}
}
],
"certifiedDeliveries": [{
"name": "",
"email": "",
"routingOrder": "",
"recipientId": "",
"signerRole": "",
"emailNotification": {
"emailSubject": "",
"emailBody": "",
"supportedLanguage": ""
}
}
],
"carbonCopies": [{
"name": "",
"email": "",
"routingOrder": "",
"recipientId": "",
"signerRole": "",
"emailNotification": {
"emailSubject": "",
136
Salesforce Contracts REST Reference
"emailBody": "",
"supportedLanguage": ""
}
}
]
},
"documents": [{ // API: required
"name": "",// API: required,
"sourceId": "",// API: required,
"fileExtension": "",// API: required,
"sourceType": "",// API: required,
"documentId": ""// API: required,
}
],
"notificationSettings": {
"useAccountDefaults": "",
"reminders": {
"reminderEnabled": "",
"reminderDelay": "",
"reminderFrequency": ""
},
"expirations": {
"expireEnabled": "",
"expireAfter": "",
"expireWarn": ""
}
}
}
Properties
137
Salesforce Contracts REST Reference
{
"voidedReason": "",//required
"senderEmail": ""
}
Properties
voidedReason String Reason for which the envelope is being Required 56.0
voided.
{
"refObjectId": "",
"contentversionId": "",
"documentNamePrefix": "namespaceprefix",
"isAsync": true
}
Properties
138
Salesforce Contracts REST Reference
Properties
description String Description of what the attribute maps to. Optional 61.0
139
Salesforce Contracts REST Reference
"templateName": "ContractExtractionTemplate",
"contextDefinitionDeveloperName": "ContractExtractionContextDefinition",
"mappingName": "ContractExtractionMappingName",
"targetObject": "Contract",
"recordType": "CLM"
},
"contextAttributeMapping": [
{
"attributeId": "11nxx000001hOozAAE",
"description": "extract startDate from the document"
},
{
"attributeId": "11nxx000001hOozAAV",
"description": "extract startDate from the document"
},
{
"attributeId": "11nxx000001hOozAAR",
"description": "extract startDate from the document"
}
]
}
Properties
context Extraction Context Details of the use case for which the Yes 61.0
UseCase Use Case Mapping mapping is defined.
Mapping Input
140
Salesforce Contracts REST Reference
Properties
targetObject String SObject that the data maps to. Required 61.0
templateName String Name of the template used for the Required 61.0
mapping.
Section Input
Input representation of a section.
Properties
141
Salesforce Contracts REST Reference
JSON example
{
"externalDocumentId" : "id",
"isAsync" : "false",
"metadata": {
"sections" : [
{
"guid": "guid1",
"name": "test1",
"isReadonly": false
},
{
"guid": "guid2",
"name": "test2",
"isReadonly": false
}
],
"objectReferences" :[
{
"objectType": "clause",
"objectId": "clauseid1",
"usages": {
"sectionIds": [
"guid1",
"guid2"
],
"usedInDocument": true
}
},
{
"objectType": "clause",
"objectId": "clauseid2",
"usages": {
"sectionIds": [
"guid1",
"guid2"
],
"usedInDocument": false // points to if this object is used in
document as well without sections
}
}
]
}
}
Properties
142
Salesforce Contracts REST Reference
Template Input
Input representation to get contract document related details.
JSON example
{
"templateId": "2dtxx000000004rAAA",
"isExternalReviewImport": false,
"externalReviewType": "OnlineMicrosoft365"
}
Properties
templateId String Template ID with key prefix 2dt used to Required 56.0
generate document.
Usages Input
Input representation of usages.
Properties
143
Salesforce Contracts REST Reference
Response Bodies
Here’s a list of Salesforce Contracts response bodies.
144
Salesforce Contracts REST Reference
145
Salesforce Contracts REST Reference
Recipient Details
Recipient details.
Recipient List
List of recipients.
Recipients Response
Output representation of a recipient’s personal and status information in a contract document’s signing process.
Save External Document Output
Output representation for save external document operation.
Signer Roles Details
Details of the e-signature signer roles.
Template List
List of configured templates.
Template Record
Template record.
E-signature Notification Expiration
E-signature notification expiration settings.
E-signature Notification Reminder
E-signature notification reminder settings.
E-signature Notification Settings
E-signature notification settings.
{
"clauseCategories": [
{
"id": "0zMRO000000001s", //not a required response field
"name": "Confidential",
"usageType": "Contract Clause Category"
},
{
"name": "Environment",
"usageType": "Disclosure Category"
}
]
}
146
Salesforce Contracts REST Reference
name String The name of the clause configuration. Small, 57.0 57.0
usageType String The usage type for the clause configuration. Small, 57.0 57.0
Possible values are:
• Contract Clause Category
• Disclosure Category
.
Content Document
Output representation of the content document record.
contractDocument String Record ID of the linked contract document Small, 56.0 56.0
VersionId version object.
isSharedExternally Boolean Indicates whether the document is available Small, 56.0 60.0
for external user access (true) or restricted
to internal users only (false).
lastModifiedDate String Last modified date of content document. Small, 56.0 56.0
147
Salesforce Contracts REST Reference
data Content Document[] List of content document details related to Big, 56.0 56.0
the contract document version.
148
Salesforce Contracts REST Reference
contentDocument String Record ID of the content document link. Small, 60.0 60.0
LinkId
createdDate String Creation date of the content document. Small, 60.0 60.0
fileExtension String File extension of the content document. Small, 60.0 60.0
isShared Boolean Indicates if the file can be viewed by all users Small, 60.0 60.0
Externally (true) or not (false). The default value
is true.
lastModified String Last modification date of the content Small, 60.0 60.0
Date document.
JSON example
{
"actions": [
{
"apiName": "cancelContract",
"uiText": "Cancel Contract"
},
{
"apiName": "submitForApproval",
"uiText": "Submit for Approval"
}
],
"contractId": "800RO000000U7FaYAK"
}
149
Salesforce Contracts REST Reference
createdDate String Created date of contract document version. Small, 56.0 56.0
creationProcessType String Creation process type of contract document Small, 56.0 56.0
version.
documentTemplateId String Template Id used for contract document Small, 56.0 56.0
version.
lastModifiedDate String Last modified date of contract document Small, 56.0 56.0
version.
lockType String Lock type of contract document version Small, 56.0 56.0
lockedByUserName String Name of the user who locked the contract Small, 56.0 56.0
document version.
name String Version name of contract document version. Small, 56.0 56.0
150
Salesforce Contracts REST Reference
JSON Sample
{
"contractId": "contractId_value",
"contractDocumentVersionId": "contractDocumentVersionId_value",
"status": "",
"contractDocuments": [
{
"contentDocumentId": "contentDocumentId_value1",
"contractDocumentVersionId": "contractDocumentVersionId_value1",
"createdDate": "createdDate_value1",
"fileExtension": "fileExtension_value1",
"lastModifiedDate": "lastModifiedDate_value1",
"title": "title_value1",
"isSharedExternally": true
}
],
"attachments": [
{
"contentDocumentId": "contentDocumentId_value2",
"contractDocumentVersionId": "contractDocumentVersionId_value2",
"createdDate": "createdDate_value2",
"fileExtension": "fileExtension_value2",
"lastModifiedDate": "lastModifiedDate_value2",
"title": "title_value2",
"isSharedExternally": true
}
]
}
contract Content Document Details of the list of documents associated Big, 60.0 60.0
Documents Response[] with the contract.
contract Content Document Details of the list of documents associated Big, 60.0 60.0
Documents Response[] with the contract.
name String Version name of the contract document Small, 60.0 60.0
version.
status String Status of the contract document version. Small, 60.0 60.0
151
Salesforce Contracts REST Reference
data Contract Document List of contract document versions details Big, 56.0 56.0
Version Response[] related to the contract.
Contract List
Contract list.
JSON example
{
"data":['yId1']
}
{
"fieldValues": [
"english",
"spanish",
"german"
]
}
152
Salesforce Contracts REST Reference
{
"documentClauseSets": [
{
"id": "123",
"name": "Governing Law",
"category": "00x40Axgdg0538F",
"categoryName": "Confidential",
"defaultLanguage": "English",
"status": "Active"
},
{
"id": "124",
"name": "Governing Market Place",
"category": "00x40Axgdg0538F",
"categoryName": "Confidential",
"defaultLanguage": "English",
"status": "Active"
}
]
}
categoryName String The category name of the document clause Small, 57.0 57.0
set.
defaultLanguage String The default language of the document Small, 57.0 57.0
clause set.
name String The name of the document clause set. Small, 57.0 57.0
153
Salesforce Contracts REST Reference
Document Generate
Output Representation of document generation record.
status String Status of the document generation process. Small, 56.0 56.0
154
Salesforce Contracts REST Reference
Document List
Document record list.
hasCurrent Boolean Indicates whether the current user has Small, 61.0 61.0
UserSigned signed the document (true) or not
(false). The default value is false.
isCurrent Boolean Indicates whether the current user is also a Small, 61.0 61.0
UserRecipient signer (true) or not (false). The default
value is false.
preceding Boolean Indicates whether the document is signed Small, 61.0 61.0
SignersExists by preceding signers (true) or not
(false). The default value is false.
preceding Boolean Indicates whether all preceding signers have Small, 61.0 61.0
SignersSigned completed their signatures (true) or not
(false). The default value is false.
155
Salesforce Contracts REST Reference
recipients Recipients List of all the signers involved in the contract Big, 61.0 61.0
Response[] document.
Document Record
Document record.
Response example
{
"documents":
[
{
"name":"docx-template",
"sourceId": "800xx000000boTRAAY",
"fileExtension":"docx",
"sourceType":"Content",
"additionalFields":
{
"key1": "value1"
}
},
{
"name":"annual-contract-doc",
"sourceId": "800xx000000boQTFGS",
"fileExtension":"pdf",
"sourceType":"Content",
"additionalFields":
{
"key1": "value1",
"key2": "value2"
}
}
]
}
Properties
156
Salesforce Contracts REST Reference
next String The URL to the next page of records. Small, 60.0 60.0
isActive Boolean Indicates whether the the document Small, 60.0 60.0
template parent record is currently active
(true) or not (false).
lastModifiedDate String Last modified date of the document Small, 60.0 60.0
template parent record.
name String Name of the document template parent Small, 60.0 60.0
record.
namespace String Namespace associated with the document Small, 60.0 60.0
template parent record.
type String Type of the document template parent Small, 60.0 60.0
record.
usageType String Usage type of the document template Small, 60.0 60.0
parent record.
versions Document Template List of versions associated to the document Small, 60.0 60.0
Child[] template parent record.
157
Salesforce Contracts REST Reference
lastModified String Last modified date of the document Small, 60.0 60.0
template child record.
name String Name of the document template child Small, 60.0 60.0
record.
status String Status of the document template child Small, 60.0 60.0
record.
Document Template
Output representation for the document template record.
Envelope Details
Envelope details.
envelopeStatus String Envelope status for the ongoing Docusign Small, 56.0 56.0
transaction.
{
"totalEnvelopesToBeUpdated":"",
"totalEnvelopesUpdated":"",
"signatureStatus:{"envelopeId1":{"success":false,"error":"errorcode","message":"errormessage"},
158
Salesforce Contracts REST Reference
"envelopeId2":{"success":true, status:"Completed"}}
}
Envelope Status
Output representation of the envelope status record.
error String Error code corresponding to the envelope Small, 56.0 56.0
ID.
Envelope Void
Void envelope related details.
159
Salesforce Contracts REST Reference
isSuccess Boolean Indicates whether the external document Small, 58.0 58.0
is created successful (true) or not
(false).
message String Provides a description of the error message Small, 58.0 58.0
in case of failure
{
"contentVersionId":"",
160
Salesforce Contracts REST Reference
"externalDocumentId":""
"externalUserId":""
"referenceObjectId":""
"referenceObject":""//ContractDocumentVersion”, “DocumentTemplate"
"url":""
}
referenceObject String API name for salesforce reference object. Small, 58.0 58.0
url String URL for the external document. Small, 58.0 58.0
contract String Record ID of the contract document version. Small, 61.0 61.0
Document
VersionId
isReview Boolean Indicates whether the current user has Small, 61.0 61.0
Completed completed the review for the document
ByCurrentUser (true) or not (false).
161
Salesforce Contracts REST Reference
attributeName String Name of the extraction context attribute. Small, 61.0 61.0
isCustom Boolean Indicates whether the attribute is a custom Small, 61.0 61.0
field (true) or not false.
target String Target object field mapped to the attribute. Small, 61.0 61.0
ObjectField
162
Salesforce Contracts REST Reference
"id": "a3j5g000000PxQLAA0",
"name": "Contract Definition"
}
name String Name of the extraction context mapping. Small, 61.0 61.0
163
Salesforce Contracts REST Reference
{
"attributeName": "ContractName",
"attributeId": "11nxx000001hOozAAE",
"targetObjectField": "Contract",
"description": "extract startDate from the document",
"isCustom": false
},
{
"attributeName": "ContractCustomField",
"attributeId": "11nxx000001hOozAAE",
"targetObjectField": "Contract",
"description": "extract startDate from the document",
"isCustom": true
},
{
"attributeName": "Description",
"attributeId": "11nxx000001hOozAAE",
"targetObjectField": "Contract",
"description": "extract startDate from the document",
"isCustom": false
}
],
"isSuccess": true,
"contextUseCaseMappingId": "ContextUseCaseMappingId"
}
context Extraction Context Details of extraction context use case Small, 61.0 61.0
UseCase Use Case Mapping mapping.
Mapping
context String Record ID of the context use case mapping. Small, 61.0 61.0
UseCase
MappingId
isSuccess Boolean Indicates whether the retrieval of mapping Small, 61.0 61.0
was successful (true) or not false.
164
Salesforce Contracts REST Reference
"message": ""
}
isSuccess Boolean Indicates whether the mapping creation Small, 61.0 61.0
was successful (true) or not (false).
message String Details of any error or warning messages. Small, 61.0 61.0
context Extraction Context Details of the extraction context mapping. Small, 61.0 61.0
Mapping Mapping
recordType String Name of the record type associated with Small, 61.0 61.0
the use case mapping.
targetObject String Name of the target object for the use case Small, 61.0 61.0
mapping.
templateName String Name of the template associated with the Small, 61.0 61.0
use case mapping.
165
Salesforce Contracts REST Reference
Generic Output
Generic output response.
isSuccess Boolean Indicates whether the API request was Small, 56.0 56.0
successful (true) or not (false).
Recipient Details
Recipient details.
Recipient List
List of recipients.
JSON example
{
"recipients":[
{
"id": "xxxx",
"name": "somename",
"email": "someemail",
"additionalFields": {
"key1": "value1"
}
},
..............................
{
"id": "yyyy",
"name": "somename1",
"email": "someemail1",
"additionalFields": {
"key1": "value1"
}
166
Salesforce Contracts REST Reference
}
]
}
Recipients Response
Output representation of a recipient’s personal and status information in a contract document’s signing process.
Sample Response
{
"Name": "Rishyv Misrep",
"email": "[email protected]",
"status": "Signed",
"finalStatusDateTime": ""
}
final String Final date and time of the current status. Small, 61.0 61.0
StatusDate
Time
{
"id":"XXXXXXXX",
"isSuccess":true,
"message":"XYZ"
}
167
Salesforce Contracts REST Reference
isSuccess Boolean The isSuccess flag for save external Small, 58.0 58.0
document operation.
message String The response message for save external Small, 58.0 58.0
document.
{
"signerRoles": [
"signer1",
"signer2",
"signer3",
"signer4",
........
"signerN"
]
}
Template List
List of configured templates.
Template Record
Template record.
168
Salesforce Contracts REST Reference
expireEnabled Boolean Indicates whether the envelope is no longer Small, 56.0 56.0
available for signing after the specified
number of days after it was sent.
expireWarn Integer Integer that specifying the number of days Small, 56.0 56.0
before the envelope expires that an
expiration warning email is sent to the
recipient; if set to 0 (zero), no warning email
is sent.
reminderFrequency Integer Integer specifying the interval in days Small, 56.0 56.0
between reminder emails.
169
Salesforce Contracts Salesforce Contracts Metadata API Types
"useAccountDefaults": true,
"reminders": {
"reminderEnabled": true,
"reminderDelay": 4,
"reminderFrequency": 5
},
"expirations": {
"expireEnabled": true,
"expireAfter": 4,
"expireWarn": 5
}
reminders Notification Reminder settings for notification setting. Small, 56.0 56.0
Reminder Setting
useAccountDefaults Boolean Indicates whether the Account defaults for Small, 56.0 56.0
notifications should be used by the
envelope [ true | false ].
ClauseCatgConfiguration
Represents the configuration about the library category that can be used by a user in their response document.
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.
ESignatureConfig
Represents the settings for integrating with external eSignature providers.
ESignatureEnvelopeConfig
Represents the notification-specific settings for integrating with external eSignature providers.
170
Salesforce Contracts ClauseCatgConfiguration
ExternalDocStorageConfig
Represents configuration, which admin makes in setup to specify the drive, path, and named credential to be used for storing
documents on external drives.
ClauseCatgConfiguration
Represents the configuration about the library category that can be used by a user in their response document.
Important: Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain
terms to avoid any effect on customer implementations.
Parent Type
This type extends Metadata metadata type and inherits fullName field.
Version
ClauseCatgConfiguration components are available in API version 57.0 and later.
Fields
Field Name Description
description Field Type
string
Description
The description about the clause category configuration.
171
Salesforce Contracts ClauseCatgConfiguration
Description
Required.
A user-friendly name for ClauseCatgConfiguration, which is defined when the
ClauseCatgConfiguration is created.
172
Salesforce Contracts ContractType
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.
Version
ContractType components are available in API version 54.0 and later.
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.
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.
173
Salesforce Contracts ContractType
174
Salesforce Contracts ESignatureConfig
ESignatureConfig
Represents the settings for integrating with external eSignature providers.
Important: Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain
terms to avoid any effect on customer implementations.
Parent Type
This type extends the Metadata metadata type and inherits its fullName field.
175
Salesforce Contracts ESignatureConfig
Version
ESignatureConfig components are available in API version 54.0 and later.
Fields
Field Name Description
configType Field Type
ConfigType (enumeration of type string)
Description
Required.
Indicates the configured setting.
Possible values are:
• AnchorString
• CalloutTimeout
• EnvelopesLastPollDate
• SignerRoles
• SyncFileSizeLimit
176
Salesforce Contracts ESignatureConfig
177
Salesforce Contracts ESignatureEnvelopeConfig
ESignatureEnvelopeConfig
Represents the notification-specific settings for integrating with external eSignature providers.
Important: Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain
terms to avoid any effect on customer implementations.
Parent Type
This type extends the Metadata metadata type and inherits its fullName field.
Version
ESignatureEnvelopeConfig components are available in API version 54.0 and later.
Fields
Field Name Description
expirationPeriod Field Type
integer
Description
The expiration period for signing.
178
Salesforce Contracts ESignatureEnvelopeConfig
179
Salesforce Contracts ExternalDocStorageConfig
ExternalDocStorageConfig
Represents configuration, which admin makes in setup to specify the drive, path, and named credential to be used for storing documents
on external drives.
Important: Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain
terms to avoid any effect on customer implementations.
Parent Type
This type extends Metadata metadata type and inherits fullName field.
180
Salesforce Contracts ExternalDocStorageConfig
Version
ExternalDocStorageConfig components are available in API version 57.0 and later.
Fields
Field Name Description
documentPath Field Type
string
Description
Required.
The path from the root in the external storage where documents are stored.
181
Salesforce Contracts ExternalDocStorageConfig
182
Salesforce Contracts ExternalDocStorageConfig
183