Newer Version Available
DocumentTemplate
Parent Type
File Suffix and Directory Location
DocumentTemplate components have the suffix .dt and are stored in the documentTemplates folder.
Version
DocumentTemplate components are available in API version 59.0 and later.
Fields
| Field Name | Description |
|---|---|
| contextDefinitionName |
|
| contextMappingName |
|
| customClassName |
|
| defaultFontStyle |
|
| documentConversionResourceName |
|
| documentGenerationMechanism |
|
| extractOmniDataTransformName |
|
| fileExtension |
|
| hasBatchableSection |
|
| isActive |
|
| isSectionProcessed |
|
| lastEmbeddedTmplSectionKey |
|
| mapperOmniDataTransformName |
|
| masterLabel |
|
| name |
|
| namespace |
|
| sectionHeaderFontStyle |
|
| sectionHeaderFontStyleValue |
|
| shouldDisplayUnmappedToken |
|
| shouldExtractEmbeddedTmplToken |
|
| status |
|
| targetTokenItemObject |
|
| targetTokenObject |
|
| tokenList |
|
| tokenMappingMethodType |
|
| tokenMappingType | |
| type | |
| uniqueName |
|
| usageType |
|
| versionNumber |
|
| xmlRelationshipMetadata |
|
Declarative Metadata Sample Definition
This is an example of a DocumentTemplate component.
1<?xml version="1.0" encoding="UTF-8"?>
2<DocumentTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
3 <customClassName></customClassName>
4 <defaultFontStyle>'Times New Roman', times, serif</defaultFontStyle>
5 <documentConversionResourceName></documentConversionResourceName>
6 <documentGenerationMechanism>ClientSide</documentGenerationMechanism>
7 <type>MicrosoftWord</type>
8 <usageType>Contract_Lifecycle_Management</usageType>
9 <extractOmniDataTransformName>extractorv1</extractOmniDataTransformName>
10 <mapperOmniDataTransformName>mapperv1</mapperOmniDataTransformName>
11 <fileExtension>docx</fileExtension>
12 <hasBatchableSection>false</hasBatchableSection>
13 <isActive>false</isActive>
14 <isSectionProcessed>false</isSectionProcessed>
15 <lastEmbeddedTmplSectionKey></lastEmbeddedTmplSectionKey>
16 <name>Sample</name>
17 <namespace></namespace>
18 <sectionHeaderFontStyle></sectionHeaderFontStyle>
19 <sectionHeaderFontStyleValue></sectionHeaderFontStyleValue>
20 <shouldDisplayUnmappedToken>false</shouldDisplayUnmappedToken>
21 <shouldExtractEmbeddedTmplToken>false</shouldExtractEmbeddedTmplToken>
22 <status>Draft</status>
23 <tokenList></tokenList>
24 <tokenMappingMethodType>OmniDataTransform</tokenMappingMethodType>
25 <tokenMappingType>JSON</tokenMappingType>
26 <targetTokenItemObject>OPPORTUNITY_LINE_ITEM</targetTokenItemObject>
27 <targetTokenObject>CONTRACT</targetTokenObject>
28 <uniqueName>Sample_1</uniqueName>
29 <versionNumber>1</versionNumber>
30 <xmlRelationshipMetadata></xmlRelationshipMetadata>
31 <masterLabel>Sample_1</masterLabel>
32</DocumentTemplate>This is an example package.xml that references the previous definition.
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3 <types>
4 <members>*</members>
5 <name>DocumentTemplate</name>
6 </types>
7 <version>65.0</version>
8</Package>Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.