DecisionTableDatasetLink

Represents the information about a dataset link associated with a decision table. In a dataset link, select an object for whose records, the decision table must provide an outcome.

Dataset links are supported only for Standard decision tables.

Note

Parent Type 

This type extends Metadata and inherits its fields.

File Suffix and Directory Location 

DecisionTableDatasetLink components have the suffix .decisionTableDatasetLink and are stored in the decisionTableDatasetLinks folder.

Version 

Introduced in API version 51.0.

Special Access Rules 

To use this metadata type, your Salesforce org must have the Loyalty Management or the Rebate Management license.

Fields 

decisionTableName 

  • Type: string
  • Required: Yes
  • Description: Required. The name of the associated decision table.

decisionTblDatasetParameters 

  • Type: DecisionTblDatasetParameter[]
  • Required: No
  • Description: Mapping between a decision table parameter and a field of the object selected in the dataset link.

description 

  • Type: string
  • Required: No
  • Description: The description of the dataset link.

isDefault 

  • Type: boolean
  • Required: No
  • Description: Indicates whether a dataset link is the default dataset link for a decision table.

setupName 

  • Type: string
  • Required: Yes
  • Description: Required. The name of the decision table dataset link, which appears in Setup.

sourceObject 

  • Type: string
  • Required: No
  • Description: Required. The name of the object being evaluated.

DecisionTblDatasetParameter Type 

Fields 

datasetFieldName 

  • Type: string
  • Required: Yes

datasetSourceObject 

  • Type: string
  • Required: Yes

fieldName 

  • Type: string
  • Required: Yes

DecisionTblDatasetParameters Type 

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 

datasetFieldName 

  • Type: string
  • Required: Yes
  • Description: Required. Name of the dataset field whose value must be compared against an Input type decision table parameter when providing the outcome.

fieldName 

  • Type: string
  • Required: Yes
  • Description: 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>