Document Types
Document Type (CM_Document_Type__mdt) is the highest level of
classification for a document and dictates the lifecycle, states,
metadata, and workflows that are available to the document once it is
created. Document subtypes are also managed using this custom metadata
type. To view the Document Type schema, visit
Document Type.
Note: Document classification is not managed in
CM_Document_Type__mdt. Classification is dependent on Subtype. When creating a document, the value you select forCM_Document_Subtype__cdetermines the availableCM_Classification__cvalues that you can choose from for that document.
Configure Document Types
To configure Document Types, follow the steps in these sections:
Step 1 - Create Document Type metadata records
To create a Document Type (CM_Document_Type__mdt) metadata record:
-
In the Quick Find box in Setup, search for and select Custom Metadata Types.
-
Navigate to the Document Type (
CM_Document_Type__mdt) row. -
Click Manage Records.
-
Click New.
-
Complete the Information section.
-
Click Save.
Step 2 - Create picklist values
To create picklist values for the CM_Document_Type__c field on
CM_Document_Version__c:
-
In the Object Manager, search for and select the Document Version (
CM_Document_Version__c) custom object. -
Click the Fields & Relationships tab.
-
Based on the selected Category value in the Document Type (
CM_Document_Type__mdt) metadata record created in Step 1 above, click either the Document Type (CM_Document_Type__c) or the Document Subtype (CM_Document_Subtype__c) field. -
In the Values section, click New.
-
Based on the existing Document Type metadata records, enter picklist values.
Note:
CM_Document_Version__c.CM_Document_Type__cpicklist values must match 1:1 to theDeveloperNamevalues for allCM_Document_Type__mdtrecords. For example, if your instance has the Document Type records in the Example Document Type Records table, enterBrochure__candMagazine__c. The saved picklist value API Names in the Example Picklist Values table are an exact match for the Document Type DeveloperNames in the Example Document Type Records table. ::::
Example Document Type Records
| DeveloperName | Label | Category | Default Expiration in Days |
|---|---|---|---|
| Brochure__c | Brochure | Type | 365 |
| Magazine__c | Magazine | Type | 90 |
Example Picklist Values
| API Name | Label |
|---|---|
| Brochure__c | Brochure |
| Magazine__c | Magazine |
- Click Save.
Step 3 - Add the picklist values of the Concept or Rate Card objects
note ::: title :::
This step only applies if you are using the Concept or Rate Card objects. ::::
To add the document type, subtype, and classification picklists of the
Concept (mvn__PP_Concept__c) and Rate Card (mvn__PP_Rate_Card__c)
objects:
-
Navigate to the Concept
mvn__PP_Concept__cor Rate Card (mvn__PP_Rate_Card__c) object. -
Click the Fields & Relationships tab.
-
Click the Document Type field.
-
In the Values section, click New.
-
Enter picklist values. These picklist values must match the ones created in the Step 2 section above. In this example, the values in the Example Picklist Values table would be used.
-
Click Save.
-
Navigate to the Document Subtype field on the object.
-
Repeat steps 1-6.
-
Navigate to the Classification field on the object.
-
Repeat steps 1-6.
-
If you use both the Concept and Rate Card objects, complete this process for both objects.