DocumentType
Represents a document type.
Parent Type
This type extends the Metadata metadata type and inherits its fullName field.
File Suffix and Directory Location
DocumentType components have the suffix .documentType and are stored in the documentTypes folder.
Version
DocumentType components are available in API version 59.0 and later.
Special Access Rules
Fields
Field Name | Description |
---|---|
description |
|
isActive |
|
masterLabel |
|
Declarative Metadata Sample Definition
The following is an example of a DocumentType component.
<?xml version="1.0" encoding="UTF-8"?>
<DocumentType xmlns="http://soap.sforce.com/2006/04/metadata">
<description>Utility_Bill</description>
<isActive>true</isActive>
<masterLabel>Utility_Bill</masterLabel>
</DocumentType>
The following is an example package.xml that references the previous definition.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>DocumentType</name>
</types>
<version>59.0</version>
</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.