Newer Version Available
DecisionTableDatasetLink
File Suffix and Directory Location
DecisionTableDatasetLink components have the suffix .decisionTableDatasetLink and are stored in the decisionTableDatasetLinks folder.
Version
DecisionTableDatasetLink components are available in API version 51.0 and later.
Special Access Rules
To use this metadata type, your Salesforce org must have the Loyalty Management or the Rebate Management license.
Fields
| Field Name | Field Type | Description |
|---|---|---|
| decisionTableName | string | Required. The name of the associated decision table. |
| decisionTblDatasetParameters | DecisionTblDatasetParameters | Mapping between a decision table parameter and a field of the object selected in the dataset link. |
| description | string | The description of the dataset link. |
| isDefault | boolean | Indicates whether a dataset link is the default dataset link for a decision table. |
| setupName | string | Required. The name of the decision table dataset link, which appears in Setup. |
| sourceObject | string | Required. The name of the object being evaluated. |
Represents the mapping between a decision table parameter and a field of the object selected in the dataset link.
The mapping allows the decision table to know which object fields must be compared to the input-output fields of the decision table.
Fields
| Field Name | Field Type | Description |
|---|---|---|
| datasetFieldName | string | Required. Name of the dataset field whose value must be compared against an Input type decision table parameter when providing the outcome. |
| fieldName | string | Required. The API name of the decision table field that is selected as an input or output for the decision table dataset link. |
Declarative Metadata Sample Definition
The following is an example of a DecisionTableDatasetLink component.
1<?xml version="1.0" encoding="UTF-8"?>
2<DecisionTableDatasetLink xmlns="http://soap.sforce.com/2006/04/metadata">
3 <decisionTableName>Sample_DT</decisionTableName>
4 <decisionTblDatasetParameters>
5 <fieldName>IsDeleted</fieldName>
6 <datasetFieldName>IsDeleted</datasetFieldName>
7 </decisionTblDatasetParameters>
8 <decisionTblDatasetParameters>
9 <fieldName>LimitNumber</fieldName>
10 <datasetFieldName>CallDurationInSeconds</datasetFieldName>
11 </decisionTblDatasetParameters>
12 <decisionTblDatasetParameters>
13 <fieldName>Name</fieldName>
14 <datasetFieldName>Subject</datasetFieldName>
15 </decisionTblDatasetParameters>
16 <description>DSL created for md-common tests</description>
17 <isDefault>false</isDefault>
18 <sourceObject>Task</sourceObject>
19 <setupName>DSL Sample</setupName>
20</DecisionTableDatasetLink>The following is an example of a default DecisionTableDatasetLink component.
1<?xml version="1.0" encoding="UTF-8"?>
2<DecisionTableDatasetLink xmlns="http://soap.sforce.com/2006/04/metadata">
3 <decisionTableName>Sample_DT</decisionTableName>
4 <isDefault>true</isDefault>
5 <sourceObject>WorkBadgeDefinition</sourceObject>
6 <setupName>Default DSL Sample</setupName>
7</DecisionTableDatasetLink>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 <fullName>Sample DT Package</fullName>
4 <description>Package created for md-common tests</description>
5 <types>
6 <members>Sample_DT</members>
7 <name>DecisionTable</name>
8 </types>
9 <types>
10 <members>DSL_Sample</members>
11 <members>Sample_DT_Default</members>
12 <name>DecisionTableDatasetLink</name>
13 </types>
14 <version>51.0</version>
15</Package>