DecisionTable defines a rule-based lookup that evaluates inputs against source data and returns matching outputs. It controls which source rows enter the table, how inputs match those rows, how multiple matching results are handled, and the table's activation and data-refresh state.
These controls are separate. A source filter is not an input-matching rule, an active table does not necessarily have successfully refreshed data, and a completed CSV upload does not activate the table. Likewise, type classifies the table, while executionType identifies its backing storage.
Key Elements
| Element | What the Element Controls |
|---|---|
dataSourceType |
Selects the source model: ContextDefinition, CsvUpload, MultipleSobjects, or SingleSobject. |
sourceObject |
Required. Identifies the object containing the rules used to determine outcomes. |
decisionTableSourceCriterias |
Defines source-data filters. Each entry requires sourceFieldName, operator, sequenceNumber, and valueType. |
sourceConditionLogic |
Combines source criteria by their sequenceNumber values to determine which source data enters the table. |
decisionTableParameters |
Defines lookup fields. Each parameter requires fieldName and usage; usage values are INPUT, OUTPUT, and ROWCRITERIA. |
conditionType |
Selects input condition logic: All, Any, or Custom. |
conditionCriteria |
Supplies the logic used to process input fields. It is separate from the source-data logic in sourceConditionLogic. |
doesConsiderNullValue |
Controls whether a column containing null is considered during lookup. The default is false. |
filterResultBy |
Selects the policy for multiple matching outputs: AnyValue, CollectOperator, FirstMatch, OutputOrder, Priority, RuleOrder, or UniqueValues. |
collectOperator |
Supplies the aggregation choice when filterResultBy is CollectOperator: Count, Maximum, Minimum, None, or Sum. |
status |
Required. Records activation state: ActivationInProgress, Active, Draft, or Inactive. |
refreshStatus |
Records cached-data refresh state: Initiated, InProgress, Completed, CompletedWithWarnings, or Failed. |
isVersioned |
Enables multiple file-import versions for a CSV-based table. Defaults to true; versions are held in decisionTableFileImportVersions. |
type |
Classifies the table as Advanced, HighScaleExecution, HighVolume, LowVolume, MediumVolume, or RealTime. |
executionType |
Identifies backing storage: DLO, HBASE, HBPO, SOLR, or SOQL. Preserve capitalization when serializing the value. |
Behavior and Constraints
Access and application scope
Using this metadata type requires a Loyalty Management or Rebate Management license.
usageType identifies the industry or application using the table, not its matching algorithm. When Business Rules Engine is enabled, the default is Bre. Other usage types depend on the industry solution and permission sets. Supported values include DefaultPricing, DefaultRating, FinancialServicesCloud, InsuranceClaimProcessing, ItServiceManagement, and StudentInformationSystem; this is not the complete value set.
Source selection and lookup matching are different layers
decisionTableSourceCriterias filters the source data before lookup evaluation. Each criterion identifies a field, an operator, and a value interpretation. Its valueType can be Formula, Literal, Lookup, Parameter, or Picklist. Do not interpret every value string as a literal.
sourceConditionLogic combines these criteria using their sequenceNumber values. By contrast, a parameter's sequence controls the order in which input fields are processed. These are separate numbering systems serving different purposes.
decisionTableParameters describes the fields used during lookup. A parameter's fieldName identifies the field, while fieldPath supplies its relationship path. For a polymorphic field, which can refer to more than one object type, domainObject identifies the domain object in the field hierarchy. These details distinguish similarly named fields on different objects or relationship paths.
The parameter's operator controls input comparison. Available comparisons include Equals, NotEquals, Contains, ExistsIn, DoesNotExistIn, Matches, DoesNotMatch, numeric or ordered comparisons, and null checks.
isRequired means that a parameter must be supplied for lookups; it does not make the underlying Salesforce field required. isGroupByField identifies an input used to group the table's business rules.
Null handling, sorting, and multiple results
doesConsiderNullValue controls whether a column containing null participates in lookup. It is separate from using the IsNull or IsNotNull operator, and separate from deciding where null values appear in sorted results.
A parameter's sortType sorts outputs using that input or output parameter's values. Its values are AscNullFirst, AscNullLast, DescNullFirst, DescNullLast, and None. Sorting is not the input-processing order defined by sequence.
When several rows match, filterResultBy determines how their outputs are handled. Read collectOperator together with filterResultBy; it is not an unconditional aggregation setting.
isPriorityField identifies a prioritized parameter, while sortType supplies sorting behavior. These settings help explain result selection, but their presence alone does not establish a complete precedence or tie-breaking rule.
Similarly, the names of type and executionType do not establish storage mappings, capacity thresholds, or refresh behavior. Treat table classification and backing storage as separate settings.
Activation, refresh, and CSV transfer states
status describes activation, not data freshness. An Active table can have a failed refresh or a CSV upload that completed with errors.
-
Cached-data refresh: Inspect
refreshStatus,refreshFailureReason, andlastSyncDate. The failure reason is table-level, and the date records the latest refresh. -
Incremental refresh:
isIncrementalSyncEnabledrecords whether incremental refresh is enabled.hasIncrementalSyncFailedreports whether the last incremental refresh failed, andlastIncrementalSyncDaterecords its date and time. -
CSV upload:
uploadStatuscan beUploadInProgress,Completed,CompletedWithErrors, orFailed. Completion with errors is distinct from clean completion. -
CSV download:
downloadStatuscan beDownloadInProgress,Completed, orFailed.
For diagnosis, inspect the state and failure details for the operation that failed. A completed CSV transfer does not establish activation state, and activation does not establish a successful refresh.
CSV file-import versions
When isVersioned is true, decisionTableFileImportVersions captures separate CSV import iterations. Each entry is a nested structure inside the DecisionTable, not a separate DecisionTable component.
Each version has its own activation window, processing rank, and operational state:
-
startDateis required and records when the version becomes active.endDaterecords when it becomes inactive. -
rankis required and helps determine when the version can be selected for processing. -
versionNameis required and has a maximum length of 120 characters. -
versionNumberis required and must be unique within the decision table. It is not documented as a substitute for rank or the activation window. -
versionStatusis required. The documented values areActivationInProgress,Active, andInactive.
Each version also has its own uploadStatus, refreshStatus, lastSyncDate, and lastIncrementalSyncDate. The upload and refresh status value sets match those used at table level, but describe that individual version.
Keep the failure element names distinct: a file-import version uses refreshFailedReason, while the table uses refreshFailureReason. Reading only the table-level diagnostics can miss the state of an individual import version.
Deployment and Retrieval
DecisionTable inherits fullName as its metadata identity. Components use the .decisionTable suffix and reside in the decisionTables folder.
setupName is the required name displayed in Salesforce Setup; it is not the metadata identity. The required top-level fields also include sourceObject and status. In a package.xml manifest, use DecisionTable as the type name and the component's metadata name as the member. For example, a component member named Sample_DT can have the display name Sample DT.
The nested structures carry their own requirements. Parameters require fieldName and usage; source criteria require sourceFieldName, operator, sequenceNumber, and valueType. File-import versions require the version fields described above. Do not treat a nested import iteration as an independently named manifest member.
Associated DecisionTableDatasetLink components can appear as separate entries in the package manifest. Their association with a table does not make them children contained in its definition.
Preserve the exact enum spelling HBPO for executionType. Also keep top-level status validation separate from nested versionStatus validation: the top-level allowance for Draft does not establish that it is valid for an import version.
Relationships
The source object and fields connect the table to its rule data. Source-field changes can affect which rules are selected; parameter-field changes can affect lookup inputs or returned outputs. Consumers such as expression sets create a dependency path from the consumer through the table to its source fields. These relationships identify possible connections, not proof that every table has every consumer; actual impact depends on the reference values present.
References
-
CustomObject:sourceObjectat table level;domainObjectwithindecisionTableParameters. -
CustomField:fieldNamewithindecisionTableParameters;sourceFieldNamewithindecisionTableSourceCriterias.
Referenced By
-
DecisionTableDatasetLink:decisionTableName. -
ExpressionSetDefinition:decisionTableName,lookupName.
Documentation Inconsistencies
-
A Bre-only client enumeration is incomplete. Salesforce defines additional
usageTypevalues, including the industry and application values listed above. A client schema that exposes onlyBremust not be treated as the complete platform value set. -
Nested version status has a narrower documented value set. The file-import version definition lists
ActivationInProgress,Active, andInactive, while a shared client status enumeration also exposesDraft.Draftis explicitly documented for top-levelstatus; do not assume it is valid forversionStatussolely because of the shared enumeration. -
The published storage example has inconsistent capitalization. It uses
Hbpo, but the documented enum value isHBPO. Serialize the uppercase value.
Common Questions
What name do I use to retrieve or deploy a DecisionTable?
Use its metadata identity, fullName, as the DecisionTable manifest member. Do not substitute the Setup display name in setupName. Component files use the .decisionTable suffix in decisionTables.
Why is my DecisionTable active when its refresh failed?
status records activation independently of refresh. Inspect refreshStatus and refreshFailureReason for table-level refresh problems. For a CSV import version, inspect that version's refreshStatus and refreshFailedReason.
How do I control multiple matching DecisionTable results?
Set filterResultBy to the required result-selection policy. If it is CollectOperator, use collectOperator to select the aggregation. Parameter priority and sorting settings do not, by themselves, define a complete tie-breaking rule.
Are CSV file-import versions separate metadata components?
No. They are entries in decisionTableFileImportVersions within the table. Each has its own activation window, rank, version number, and diagnostics. versionNumber must be unique within that table.
What is the difference between source criteria and input conditions?
decisionTableSourceCriterias and sourceConditionLogic select source data. decisionTableParameters, conditionType, and conditionCriteria control lookup evaluation. A source criterion's sequenceNumber is distinct from an input parameter's processing sequence.