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 without dataset link
- /services/data/vXX.X/actions/custom/decisionTableAction/dtapi_Default
- URI with dataset link
- /services/data/vXX.X/actions/custom/decisionTableAction/dslapiname
- 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 Decision Table with dataset link, specify the list that contains the source object and its corresponding field to be used in the dataset link that is associated with the decision table.
Input | Details |
---|---|
sObjectType |
|
Outputs
Output | Details |
---|---|
outcomeList |
|
outcomeType |
|
singleOutcome |
|
Usage
JSON Sample Request without dataset link
{
"inputs" : [
{
"Product__c": "Cloud Kicks",
"Price__c": 1000
}
]
}
JSON Sample Request with dataset Link
{
"inputs" : [
{
"Transaction__c" : {
"Product__c": "Cloud Kicks",
"Price__c": 1000
}
}
]
}
JSON Sample Request with dataset Link containing multiple source objects
{
"inputs" : [
{
"Transaction__c" : {
"Product__c": "Cloud Kicks",
"Price__c": 1000
}
}
{
"Catalog__c" : {
"name": "Highest_Price_Point_c",
"value": "500",
}
}
]
}
JSON Sample Response
[{
“outcomeType” : “SINGLE MATCH”,
“singleOutcome”: { “Points”: 100 },
"outcomeList" : [
{
“Points”: 100
}
]
}]