Newer Version Available
Decision Table Actions
Decision tables provide outcomes based on your business rules. For more information about invoking decision tables, see Invoke a Decision Table in Salesforce Help.
This object is available in API version 51.0 and later.
Supported REST HTTP Methods
- URI
- /services/data/vXX.X/actions/custom/decisionTableAction
- Formats
- JSON
- HTTP Methods
- GET, POST
- Authentication
- Authorization: Bearer token
Inputs
You can choose to invoke a decision table with or without dataset link.
To execute a default Decision Table without dataset link, specify the input fields that were
defined at the time of the Decision Table creation in the flow. The input fields are optional.
However, you must specify at least one field as the input parameter. Use the GET method to
retrieve input parameters of a Decision Table definition.
To execute a Decision Table with dataset link, specify the source object of the dataset link that is associated with the decision table.
| Input | Details |
|---|---|
| sObjectType |
|
Outputs
| Output | Details |
|---|---|
| outcomeList |
|
| outcomeType |
|
| singleOutcome |
|
Usage
JSON Sample Request for Default Decision Table
1{
2 "inputs" : [
3 {
4 "Product__c": "Cloud Kicks",
5 "Price__c": 1000
6 }
7 ]
8}JSON Sample Request with Dataset Link
1{
2 "inputs" : [
3 {
4 "Transaction__c" : {
5 "Product__c": "Cloud Kicks",
6 "Price__c": 1000
7 }
8 }
9 ]
10}JSON Sample Response
1[{
2 “outcomeType” : “SINGLE MATCH”,
3 “singleOutcome”: { “Points”: 100 },
4 "outcomeList" : [
5 {
6 “Points”: 100
7 }
8 ]
9}]