Newer Version Available

This content describes an older version of this product. View Latest

DecisionTable

Represents the information about a decision table. This type extends the Metadata metadata type and inherits its fullName field.

File Suffix and Directory Location

DecisionTable components have the suffix .decisionTable and are stored in the decisionTables folder.

Version

DecisionTable 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
decisionTableParameters DecisionTableParameters Required. Parameters that you specify in a decision table.
description string Description of the decision table.
lastSyncDate string Required. Latest date on which the decision table was refreshed.
setupName string Required. Name of the decision table, which appears in Salesforce Setup.
sourceObject string Required. Object that contains the rules based on which the decision table must provide outcomes.
status DecisionTableStatus (enumeration of type string) Required. Status of the decision table.
Valid values are:
  • Draft
  • Inactive
  • Active
  • ActivationInProgress

DecisionTableParameters

Represents an input or output field of a decision table.

Fields

Field Name Field Type Description
fieldName string Required. API name of the fields that selected as an input or output for the decision table.
isGroupByField boolean Indicates whether an input field is used to group the business rules of the decision table.
operator DecisionTableOperator (enumeration of type string) Required. Operator used for the input field. Valid values are:
  • Equals
  • NotEquals
  • LessThan
  • LessOrEqual
  • GreaterThan
  • GreaterOrEqual
  • Matches
  • ExistsIn
  • DoesNotExistIn
sequence integer The sequence in which input fields are processed. This field is available in API version 52.0 and later.
sortType DecisionTableSortType(enumeration of type string) Sort outputs of a decision table based on the values of the input or output parameter field. This field is available in API version 56.0 and later.
Valid values are:
  • AscNullFirst
  • AscNullLast
  • DescNullFirst
  • DescNullLast
  • None
Outputs can’t be sorted based on picklist and multi-select picklist fields.
usage DecisionTable​ParameterType (enumeration of type string) Required. Usage type of a field.
The usage type can be one of the following values:
  • INPUT
  • OUTPUT

Declarative Metadata Sample Definition

The following is an example of a DecisionTable component.

The following is an example package.xml that references the previous definition.