Newer Version Available
ExpressionSetDefinition
File Suffix and Directory Location
ExpressionSetDefinition components have the suffix .expressionSetDefinition and are stored in the expressionSetDefinition folder.
Version
ExpressionSetDefinition components are available in API version 55.0 and later.
Fields
| Field Name | Description |
|---|---|
| description |
|
| label |
|
| processType |
|
| template |
|
| versions |
|
ExpressionSetDefinitionVersion
Represents a definition of an expression set version.
| Field Name | Description |
|---|---|
| description |
|
| endDate |
|
| expressionSetDefinition |
|
| label |
|
| shouldShowExplExternally |
|
| startDate |
|
| status |
|
| steps |
|
| uiTier |
|
| variables |
|
| versionNumber |
|
ExpressionSetStep
Represents a step in an expression set version.
| Field Name | Description |
|---|---|
| actionType |
|
| advancedCondition |
|
| aggregation |
|
| assignment |
|
| conditionExpression |
|
| customElement |
|
| decisionTable |
|
| description |
|
| failedExplainerTemplate |
|
| label |
|
| name |
|
| parentStep |
|
| passedExplainerTemplate |
|
| resultIncluded |
|
| sequenceNumber |
|
| shouldExposExecPathMsgOnly |
|
| shouldExposeConditionDetails |
|
| shouldShowExplExternally |
|
| stepType |
|
| subExpression |
|
ExpressionSetAdvancedCondition
Represents an advanced condition step.
| Field Name | Description |
|---|---|
| conditionLogic |
|
| criteria |
|
| errorMessage |
|
| resultParameter |
|
| successMessage |
|
ExpressionSetConditionCriteria
Represents a criterion defined in an advanced condition.
| Field Name | Description |
|---|---|
| operator |
|
| sequenceNumber |
|
| sourceFieldName |
|
| value |
|
| valueType |
|
ExpressionSetAggregation
Represents an aggregation step.
| Field Name | Description |
|---|---|
| aggregatedParameter |
|
| aggregateFunction |
|
| expression |
|
ExpressionSetAssignment
Represents an assignment step.
| Field Name | Description |
|---|---|
| aggregatedParameter |
|
| expression |
|
ExpressionSetConditionExpression
Represents a condition in a condition step.
| Field Name | Description |
|---|---|
| errorMessage |
|
| expression |
|
| resultParameter |
|
| successMessage |
|
ExpressionSetCustomElement
Represents a custom element in an expression set. Available in API version 56.0 and later.
| Field Name | Description |
|---|---|
| parameters |
|
ExpressionSetElementParameter
Represents a parameter within a custom element of an expression set. Available in API version 56.0 and later.
| Field Name | Description |
|---|---|
| input |
|
| name |
|
| output |
|
| type |
|
| value |
|
ExpressionSetDecisionTable
Represents a decision table or decision matrix in a step.
| Field Name | Description |
|---|---|
| decisionTableName |
|
| type |
|
ExpressionSetSubExpression
Represents a sub expression in a step.
| Field Name | Description |
|---|---|
| expressionSet |
|
ExpressionSetVariable
Represents a definition of an expression set variable.
| Field Name | Description |
|---|---|
| collection |
|
| dataType |
|
| decimalPlaces |
|
| description |
|
| fields |
|
| input |
|
| lookupName |
|
| lookupType |
|
| name |
|
| objectName |
|
| output |
|
| resultStep |
|
| type |
|
| value |
|
ExpressionSetVariableField
Represents a definition of a field in an object that is used as a variable in an expression set.
| Field Name | Description |
|---|---|
| dataType |
|
| decimalPlaces |
|
| fields |
|
| lookupName |
|
| lookupType |
|
| name |
|
| objectName |
|
Declarative Metadata Sample Definition
The following is an example of an ExpressionSetDefinition component.
1<?xml version="1.0" encoding="UTF-8"?>
2<ExpressionSetDefinition
3 xmlns="http://soap.sforce.com/2006/04/metadata">
4 <description />
5 <label>E1test</label>
6 <processType>TestProcess</processType>
7 <template>false</template>
8 <urls />
9 <versions>
10 <fullName>E1test_V1</fullName>
11 <description />
12 <endDate />
13 <expressionSetDefinition>E1test</expressionSetDefinition>
14 <label>E1test V1</label>
15 <shouldShowExplExternally>false</shouldShowExplExternally>
16 <startDate>2022-07-15T05:44:49.000+0000</startDate>
17 <status>Draft</status>
18 <steps>
19 <actionType>TestCustomElement</actionType>
20 <advancedCondition />
21 <aggregation />
22 <assignment />
23 <conditionExpression />
24 <customElement>
25 <parameters>
26 <input>true</input>
27 <name>Dividend</name>
28 <output>false</output>
29 <value>var2</value>
30 </parameters>
31 <parameters>
32 <input>true</input>
33 <name>Divisor</name>
34 <output>false</output>
35 <value>var3</value>
36 </parameters>
37 <parameters>
38 <input>false</input>
39 <name>Answer</name>
40 <output>true</output>
41 <value>var4</value>
42 </parameters>
43 </customElement>
44 <decisionTable />
45 <description />
46 <failedExplainerTemplate />
47 <label>Business Element</label>
48 <name>BusinessElement</name>
49 <parentStep />
50 <passedExplainerTemplate />
51 <resultIncluded>false</resultIncluded>
52 <sequenceNumber>2</sequenceNumber>
53 <shouldExposExecPathMsgOnly>true</shouldExposExecPathMsgOnly>
54 <shouldExposeConditionDetails>false</shouldExposeConditionDetails>
55 <shouldShowExplExternally>false</shouldShowExplExternally>
56 <stepType>BusinessKnowledgeModel</stepType>
57 <subExpression />
58 </steps>
59 <steps>
60 <actionType>AssignParameterValues</actionType>
61 <advancedCondition />
62 <aggregation />
63 <assignment>
64 <assignedParameter>var1</assignedParameter>
65 <expression>10</expression>
66 </assignment>
67 <conditionExpression />
68 <customElement />
69 <decisionTable />
70 <description />
71 <failedExplainerTemplate />
72 <label>Calculation</label>
73 <name>Calculation</name>
74 <parentStep />
75 <passedExplainerTemplate />
76 <resultIncluded>false</resultIncluded>
77 <sequenceNumber>1</sequenceNumber>
78 <shouldExposExecPathMsgOnly>true</shouldExposExecPathMsgOnly>
79 <shouldExposeConditionDetails>false</shouldExposeConditionDetails>
80 <shouldShowExplExternally>false</shouldShowExplExternally>
81 <stepType>BusinessKnowledgeModel</stepType>
82 <subExpression />
83 </steps>
84 <uiTier />
85 <urls />
86 <variables>
87 <collection>false</collection>
88 <dataType>Numeric</dataType>
89 <decimalPlaces>2</decimalPlaces>
90 <description>var1</description>
91 <fields />
92 <input>true</input>
93 <lookupName />
94 <lookupType />
95 <name>var2</name>
96 <objectName />
97 <output>false</output>
98 <resultStep />
99 <type>Variable</type>
100 <value />
101 </variables>
102 <variables>
103 <collection>false</collection>
104 <dataType>Numeric</dataType>
105 <decimalPlaces>2</decimalPlaces>
106 <description>var1</description>
107 <fields />
108 <input>false</input>
109 <lookupName />
110 <lookupType />
111 <name>var1</name>
112 <objectName />
113 <output>false</output>
114 <resultStep />
115 <type>Variable</type>
116 <value />
117 </variables>
118 <variables>
119 <collection>false</collection>
120 <dataType>Numeric</dataType>
121 <decimalPlaces>2</decimalPlaces>
122 <description>var1</description>
123 <fields />
124 <input>false</input>
125 <lookupName />
126 <lookupType />
127 <name>var4</name>
128 <objectName />
129 <output>false</output>
130 <resultStep />
131 <type>Variable</type>
132 <value />
133 </variables>
134 <variables>
135 <collection>false</collection>
136 <dataType>Numeric</dataType>
137 <decimalPlaces>2</decimalPlaces>
138 <description>var1</description>
139 <fields />
140 <input>true</input>
141 <lookupName />
142 <lookupType />
143 <name>var3</name>
144 <objectName />
145 <output>false</output>
146 <resultStep />
147 <type>Variable</type>
148 <value />
149 </variables>
150 <versionNumber>1</versionNumber>
151 </versions>
152</ExpressionSetDefinition>The following is an example package.xml that references the previous definition.
1<?xml version="1.0" encoding="UTF-8"?>
2<Package
3 xmlns="http://soap.sforce.com/2006/04/metadata">
4 <types>
5 <members>*</members>
6 <name>ExpressionSetDefinition</name>
7 </types>
8 <version>58.0</version>
9</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.