DecisionTableDatasetLink connects a decision table to an object whose records the table evaluates to provide an outcome. Its field mappings connect fields on those records to the decision table's input-output fields. The link is a separate metadata component from DecisionTable, which contains the decision logic.
Dataset links are supported only for Standard decision tables. To use this metadata type, the Salesforce org must have a Loyalty Management or Rebate Management license.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
The link's metadata component identity, inherited from Metadata. It is distinct from the name displayed in Setup and from the associated decision table's name. |
decisionTableName |
Required. Identifies the associated DecisionTable. |
sourceObject |
Required. Identifies the object whose records are evaluated. References its CustomObject definition. |
setupName |
Required. Sets the dataset link's name as displayed in Setup; it is not the deployment identity. |
isDefault |
A boolean, true or false, indicating whether this is the default dataset link for the associated decision table. |
decisionTblDatasetParameters |
An optional, repeated structure containing explicit mappings between object fields and decision table fields. |
datasetFieldName |
Required within each supplied mapping. Identifies the evaluated object's field whose value is compared against an Input type decision table parameter. References CustomField. |
fieldName |
Required within each supplied mapping. Identifies the API name of the decision table field selected as an input or output for the link. References CustomField. |
Behavior and Constraints
datasetFieldName and fieldName identify different sides of a mapping and do not have to match. For example, a mapping can connect the evaluated object's CallDurationInSeconds field through datasetFieldName to the decision table's LimitNumber field through fieldName.
This distinction matters when assessing the impact of a field change. A change to the evaluated object's field affects the dataset side of the mapping; a change to the associated decision table's field affects the table side. Matching field names alone does not establish that they refer to the same field.
Explicit mappings are optional in the metadata definition. When a decisionTblDatasetParameters entry is supplied, both datasetFieldName and fieldName are required within that entry.
The default designation and explicit mappings are separate settings. isDefault identifies the default link for the associated table; it does not describe the field mappings. A default link can be represented with isDefault set to true and no explicit decisionTblDatasetParameters entries.
Deployment and Retrieval
DecisionTableDatasetLink components use the .decisionTableDatasetLink suffix and are stored in the decisionTableDatasetLinks folder.
Deploy and compare the link using its own fullName. Do not substitute setupName, which is the label displayed in Setup, or decisionTableName, which identifies the referenced table. The link's configuration must be interpreted separately from the table's configuration.
In a package.xml manifest, list the link under DecisionTableDatasetLink and the associated table under DecisionTable when including both components. For example, the table member can be Sample_DT while its links are separate members named DSL_Sample and Sample_DT_Default. A link with the member name DSL_Sample can display as DSL Sample in Setup.
Deployment dependency analysis must distinguish the associated table, the evaluated object, and the fields on each side of the mappings. These are separate references rather than configuration contained entirely within the link.
Relationships
The link references a decision table and an evaluated object. Its mapping entries also reference fields in two different contexts: the evaluated object's fields and the associated decision table's fields.
References
-
CustomField:datasetFieldName,fieldName. -
CustomObject:sourceObject. -
DecisionTable:decisionTableName.
Common Questions
Can I use DecisionTableDatasetLink with any decision table?
No. Dataset links are supported only for Standard decision tables. The org must also have a Loyalty Management or Rebate Management license.
What is the difference between datasetFieldName and fieldName?
datasetFieldName identifies the evaluated object's field. fieldName identifies the decision table field selected as an input or output. The names can differ because they identify opposite sides of the mapping.
Does a default dataset link require explicit field mappings?
No. Explicit decisionTblDatasetParameters entries are optional, and a default link can omit them. If an entry is supplied, both field names within it are required.
Which name identifies a dataset link during deployment?
The link's own fullName identifies the metadata component. setupName is its displayed Setup name, while decisionTableName identifies the associated table.
Where are DecisionTableDatasetLink files stored?
They are stored in the decisionTableDatasetLinks folder with the .decisionTableDatasetLink suffix.