DataMapperDefinition
Represents a Data Mapper's header
configurations, such as its name and type. Data Mappers transfer and transform data between
Salesforce and Omnistudio components. They act as data sources in Flexcards and as actions in
Omniscripts.
Parent Type
This type extends the Metadata metadata type and inherits its fullName field.
File Suffix and Directory Location
DataMapperDefinition components have the suffix .dataMapperDefinition and are stored in the dataMapperDefinitions folder.
Special Access Rules
Fields
| Field Name | Description |
|---|---|
| batchSize |
|
| cleanResponseCacheType |
|
| dataMapperDefinitionItem |
|
| description |
|
| expectedInputJson |
|
| expectedInputOtherData |
|
| expectedInputXml |
|
| expectedOutputJson |
|
| expectedOutputOtherData |
|
| expectedOutputXml |
|
| globalKey |
|
| inputParsingClassName |
|
| inputType |
|
| isActive |
|
| isAssignmentRulesUsed |
|
| isDeletedOnSuccess |
|
| isErrorIgnored |
|
| isFldLevelSecurityEnabled |
|
| isManagedUsingStdDesigner |
|
| isNullInpIncludedInOput |
|
| isProcessSuperBulk |
|
| isRollbackOnError |
|
| isSourceObjectDefault |
|
| isXmlDeclarationRemoved |
|
| masterLabel |
|
| outputParsingClassName |
|
| outputType |
|
| overrideKey |
|
| preprocessorClassName |
|
| previewJsonData |
|
| previewOtherData |
|
| previewSourceObjectData |
|
| previewXmlData |
|
| references |
|
| requiredPermission |
|
| responseCacheTtlMinutes |
|
| sourceObject |
|
| synchronousProcessThreshold |
|
| targetOutputDocIdentifier |
|
| targetOutputFileName |
|
| type |
|
| xmlOutputTagsOrder |
|
DataMapperDefinitionItem
| Field Name | Description |
|---|---|
| dataMapperDefItemName |
|
| dataMapperDefinitionName |
|
| defaultValue |
|
| filterDataType |
|
| filterGroup |
|
| filterOperator |
|
| filterValue |
|
| formulaConverted |
|
| formulaExpression |
|
| formulaResultPath |
|
| formulaSequence |
|
| globalKey |
|
| inputField |
|
| inputObject |
|
| inputObjectQuerySequence |
|
| isDisabled |
|
| isRequiredForUpsert |
|
| isUpsertKey |
|
| linkedField |
|
| linkedObjectSequence |
|
| lookupByField |
|
| lookupObject |
|
| lookupReturnedField |
|
| outputCreationSequence |
|
| outputField |
|
| outputFieldDataType |
|
| outputObject |
|
| valueMapping |
|
Declarative Metadata Sample Definition
The following is an example of a DataMapperDefinition component.
1<?xml version="1.0" encoding="UTF-8"?>
2<DataMapperDefinition xmlns="http://soap.sforce.com/2006/04/metadata">
3 <fullName>TestDataMapperDefinition</fullName>
4 <masterLabel>Test Data Mapper Definition</masterLabel>
5 <batchSize>200</batchSize>
6 <description>Test Data Mapper Definition for Metadata Gauntlet</description>
7 <expectedInputJson>{"testInput":"value"}</expectedInputJson>
8 <expectedInputOtherData></expectedInputOtherData>
9 <expectedInputXml><test>value</test></expectedInputXml>
10 <expectedOutputJson>{"testOutput":"value"}</expectedOutputJson>
11 <expectedOutputOtherData></expectedOutputOtherData>
12 <expectedOutputXml><output>value</output></expectedOutputXml>
13 <globalKey>TestDataMapperDefinition_1</globalKey>
14 <inputType>JSON</inputType>
15 <isActive>true</isActive>
16 <isAssignmentRulesUsed>false</isAssignmentRulesUsed>
17 <isDeletedOnSuccess>false</isDeletedOnSuccess>
18 <isErrorIgnored>false</isErrorIgnored>
19 <isFldLevelSecurityEnabled>false</isFldLevelSecurityEnabled>
20 <isManagedUsingStdDesigner>true</isManagedUsingStdDesigner>
21 <isNullInpIncludedInOput>false</isNullInpIncludedInOput>
22 <isProcessSuperBulk>false</isProcessSuperBulk>
23 <isRollbackOnError>true</isRollbackOnError>
24 <isSourceObjectDefault>false</isSourceObjectDefault>
25 <isXmlDeclarationRemoved>false</isXmlDeclarationRemoved>
26 <outputType>JSON</outputType>
27 <overrideKey></overrideKey>
28 <previewJsonData>{"preview":"data"}</previewJsonData>
29 <previewOtherData></previewOtherData>
30 <previewSourceObjectData></previewSourceObjectData>
31 <previewXmlData></previewXmlData>
32 <references>[]</references>
33 <requiredPermission></requiredPermission>
34 <cleanResponseCacheType>Session Cache</cleanResponseCacheType>
35 <responseCacheTtlMinutes>0</responseCacheTtlMinutes>
36 <sourceObject></sourceObject>
37 <synchronousProcessThreshold>0</synchronousProcessThreshold>
38 <targetOutputDocIdentifier></targetOutputDocIdentifier>
39 <targetOutputFileName></targetOutputFileName>
40 <type>Transform</type>
41 <xmlOutputTagsOrder></xmlOutputTagsOrder>
42 <dataMapperDefinitionItem>
43 <dataMapperDefItemName>Item1</dataMapperDefItemName>
44 <dataMapperDefinitionName>TestDataMapperDefinition</dataMapperDefinitionName>
45 <defaultValue>defaultValue</defaultValue>
46 <filterDataType>STRING</filterDataType>
47 <filterGroup>1</filterGroup>
48 <filterOperator>EQUAL</filterOperator>
49 <filterValue>testFilter</filterValue>
50 <formulaConverted></formulaConverted>
51 <formulaExpression></formulaExpression>
52 <formulaResultPath></formulaResultPath>
53 <formulaSequence>1</formulaSequence>
54 <globalKey>TestItem1_Key</globalKey>
55 <inputField>inputFieldPath</inputField>
56 <inputObject>Account</inputObject>
57 <inputObjectQuerySequence>1</inputObjectQuerySequence>
58 <isDisabled>false</isDisabled>
59 <isRequiredForUpsert>false</isRequiredForUpsert>
60 <isUpsertKey>false</isUpsertKey>
61 <linkedField></linkedField>
62 <linkedObjectSequence>0</linkedObjectSequence>
63 <lookupByField></lookupByField>
64 <lookupObject></lookupObject>
65 <lookupReturnedField></lookupReturnedField>
66 <outputCreationSequence>1</outputCreationSequence>
67 <outputField>outputFieldPath</outputField>
68 <outputFieldDataType>STRING</outputFieldDataType>
69 <outputObject>Contact</outputObject>
70 <valueMapping></valueMapping>
71 </dataMapperDefinitionItem>
72</DataMapperDefinition>The following 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>DataMapperDefinition</name>
6 </types>
7 <version>[ftest]</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.