Newer Version Available
DecisionTable
File Suffix and Directory Location
DecisionTable components have the suffix .decisionTable and are stored in the decisionTables folder.
Special Access Rules
To use this metadata type, your Salesforce org must have the Loyalty Management or the Rebate Management license.
Fields
| Field Name | Description |
|---|---|
| collectOperator | |
| conditionCriteria |
|
| conditionType | |
| dataSourceType | |
| decisionTableParameters |
|
| decisionTableSourceCriterias |
|
| description |
|
| doesConsiderNullValue |
|
| downloadStatus | |
| executionType | |
| filterResultBy | |
| hasIncrementalSyncFailed |
|
| isIncrementalSyncEnabled |
|
| lastIncrementalSyncDate |
|
| lastSyncDate |
|
| refreshFailureReason |
|
| refreshStatus | |
| setupName |
|
| sourceConditionLogic |
|
| sourceObject |
|
| status | |
| type | |
| uploadStatus | |
| usageType |
|
DecisionTableParameter
Represents an input or output field of a decision table.
DecisionTableSourceCriteria
Represents the fields and values from a data source that are used to define the condition logic of the data that's used in a decision table.
Declarative Metadata Sample Definition
The following is an example of a DecisionTable component.
1<?xml version="1.0" encoding="UTF-8"?>
2<DecisionTable xmlns="http://soap.sforce.com/2006/04/metadata">
3 <collectOperator>None</collectOperator>
4 <conditionCriteria>1 and 2 and 3 and 4</conditionCriteria>
5 <conditionType>All</conditionType>
6 <dataSourceType>SingleSobject</dataSourceType>
7 <decisionTableParameters>
8 <fieldName>IsDeleted</fieldName>
9 <operator>Equals</operator>
10 <usage>INPUT</usage>
11 <sequence>1</sequence>
12 <isGroupByField>true</isGroupByField>
13 <sortType>AscNullFirst</sortType>
14 <dataType>Number</dataType>
15 <fieldPath>AccountFeed.CommentsCount</fieldPath>
16 <domainObject>AccountFeed</domainObject>
17 <isPriorityField>false</isPriorityField>
18 <decimalScale>2</decimalScale>
19 <length>14</length>
20 <isRequired>false</isRequired>
21 </decisionTableParameters>
22 <decisionTableParameters>
23 <fieldName>IsActive</fieldName>
24 <usage>OUTPUT</usage>
25 </decisionTableParameters>
26 <decisionTableParameters>
27 <fieldName>LimitNumber</fieldName>
28 <operator>Equals</operator>
29 <usage>INPUT</usage>
30 <sequence>2</sequence>
31 <isGroupByField>false</isGroupByField>
32 </decisionTableParameters>
33 <decisionTableParameters>
34 <fieldName>LimitStartDate</fieldName>
35 <usage>OUTPUT</usage>
36 </decisionTableParameters>
37 <decisionTableParameters>
38 <fieldName>GivenBadgeCount</fieldName>
39 <operator>Equals</operator>
40 <usage>INPUT</usage>
41 <sequence>3</sequence>
42 <isGroupByField>false</isGroupByField>
43 </decisionTableParameters>
44 <decisionTableParameters>
45 <fieldName>Name</fieldName>
46 <operator>Equals</operator>
47 <usage>INPUT</usage>
48 <sequence>4</sequence>
49 <isGroupByField>false</isGroupByField>
50 </decisionTableParameters>
51 <decisionTableSourceCriterias>
52 <sourceFieldName>IsDeleted</sourceFieldName>
53 <operator>Equals</operator>
54 <value>false</value>
55 <sequenceNumber>1</sequenceNumber>
56 <valueType>Literal</valueType>
57 </decisionTableSourceCriterias>
58 <description>Sample DT created for md-common tests</description>
59 <filterResultBy>UniqueValues</filterResultBy>
60 <setupName>Sample DT</setupName>
61 <sourceObject>WorkBadgeDefinition</sourceObject>
62 <sourceConditionLogic>1</sourceConditionLogic>
63 <status>Draft</status>
64 <type>LowVolume</type>
65 <usageType>Bre</usageType>
66 <doesConsiderNullValue>false</doesConsiderNullValue>
67 <refreshStatus>Failed</refreshStatus>
68 <refreshFailureReason>Failed due to limit violation.</refreshFailureReason>
69 <executionType>Hbpo</executionType>
70 <lastIncrementalSyncDate>""</lastIncrementalSyncDate>
71 <uploadStatus>Completed</uploadStatus>
72 <isIncrementalSyncEnabled>false</isIncrementalSyncEnabled>
73 <hasIncrementalSyncFailed>false</hasIncrementalSyncFailed>
74</DecisionTable>The following is an example package.xml that references the previous definition.
1
2<?xml version="1.0" encoding="UTF-8"?>
3<Package xmlns="http://soap.sforce.com/2006/04/metadata">
4 <fullName>Sample DT Package</fullName>
5 <description>Package created for md-common tests</description>
6 <types>
7 <members>Sample_DT</members>
8 <name>DecisionTable</name>
9 </types>
10 <types>
11 <members>DSL_Sample</members>
12 <members>Sample_DT_Default</members>
13 <name>DecisionTableDatasetLink</name>
14 </types>
15 <version>64.0</version>
16</Package>