DocumentTemplate

Represents information about dynamic document generation. This object is available in API version 56.0 and later.

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

Type: string

Properties: Create, Filter, Group, Nillable, Sort, Update

Description: The name of the context definition that contains the mapping details used for extraction in the Context Service token mapping type.

Type: string

Properties: Create, Filter, Group, Nillable, Sort, Update

Description: The name of the context mapping used for extraction in the Context Service token mapping type.

Type: string

Properties: Create, Filter, Group, Nillable, Sort, Update

Description: The name of the transform that’s used to convert the hydrated data into the desired output structure. This transformation uses formulas, grouping operations, and hierarchical representations, including nested groups and product bundles. Available in API version 67.0 and later.

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.

Type: textarea

Properties: Create, Nillable, Update

Description: The default font style for a web document template.

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.

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 or ServerSide

The default value is ClientSide.

Type: string

Properties: Create, Filter, Group, Nillable, Sort, Update

Description: The name of the OmniDataTransform bundle of the extract type.

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.

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.

Type: boolean

Properties: Create, Defaulted on create, Filter, Group, Sort, Update

Description: Indicates whether the document template is active.

The default value is false.

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.

Type: string

Properties: Create, Filter, Group, Nillable, Sort, Update

Description: The last auto generated key of the embedded template section.

Type: string

Properties: Create, Filter, Group, Nillable, Sort, Update

Description: The name of the OmniDataTransform bundle of the mapper type.

Type: string

Properties: Create, Filter, Group, idLookup, Sort, Update

Description: The name of the document template.

Type: string

Properties: Create, Filter, Group, Nillable, Sort, Update

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.

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

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

Type: textarea

Properties: Create, Nillable, Update

Description: The field to select font style for the section header of the web document template.

Type: textarea

Properties: Create, Nillable, Update

Description: The value of the font style selected for the section header of the web document template.

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.

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.

Type: picklist

Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

Description: Specifies the status of the document template.

Possible values are Active, Archived, or Draft

Type: multipicklist

Properties: Create, Filter, Nillable, Update

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, or QuoteLineItem

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, or Quote

Type: textarea

Properties: Create, Nillable, Update

Description: The list of tokens used to define a section condition.

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 or OmniDataTransform

Type: picklist

Properties: Create, Filter, Group, Restricted picklist, Sort, Update

Description: Specifies the mapping type for tokens of the document template.

Possible values are JSON or SalesforceObject

Type: picklist

Properties: Create, Filter, Group, Restricted picklist, Sort, Update

Description: Specifies the type of document template.

Possible values are Web, MicrosoftWord, Microsoft365Word, or MicrosoftPowerpoint

Type: string

Properties: Create, Filter, Group, Nillable, Sort, Update

Description: The unique name for the document template.

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.

Type: int

Properties: Create, Filter, Group, idLookup, Nillable, Sort, Update

Description: The version number of the document template.

Type: textarea

Properties: Create, Nillable, Update

Description: The WML relationship metadata used to process Microsoft Word documents.

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.