Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
ContextUseCaseMapping
Parent Type
File Suffix and Directory Location
ContextUseCaseMapping components have the suffix .contextUseCaseMapping and are stored in the contextUseCaseMappings folder.
Version
ContextUseCaseMapping components are available in API version 61.0 and later.
Special Access Rules
Requires Context Service to be enabled in the organization. This metadata type is specifically designed for contract lifecycle management and is part of the broader Context Service architecture for Industries solutions.
Fields
Declarative Metadata Sample Definition
This is an example of a ContextUseCaseMapping component.
1<?xml version="1.0" encoding="UTF-8"?>
2<ContextUseCaseMapping xmlns="http://soap.sforce.com/2006/04/metadata">
3 <contextDefinitionName>TestDefName</contextDefinitionName>
4 <mappingName>TestMapName</mappingName>
5 <mappingType>Hydration</mappingType>
6 <masterLabel>TestMLabel</masterLabel>
7 <referenceObjectName>Opportunity</referenceObjectName>
8 <referenceObjectRecordType>TestOppRT</referenceObjectRecordType>
9 <targetObjectCustomFieldName>SourceOpportunityId</targetObjectCustomFieldName>
10 <targetObjectName>Contract</targetObjectName>
11 <targetObjectRecordType>TestOppRT</targetObjectRecordType>
12 <useCaseType>ContractCreationOrUpdation</useCaseType>
13</ContextUseCaseMapping>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 <fullName>TestPkg</fullName>
4 <types>
5 <members>Opportunity.TestSalesProcess</members>
6 <name>BusinessProcess</name>
7 </types>
8 <types>
9 <members>TestDName</members>
10 <name>ContextUseCaseMapping</name>
11 </types>
12 <types>
13 <members>Contract.ContractLifecycleManagement</members>
14 <members>Opportunity.TestOppRT</members>
15 <name>RecordType</name>
16 </types>
17 <version>68.0</version>
18</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.