Decision Table Execution

Execute an active decision table.
Resource
1services/data/vXX.X/connect/business-rules/decision-table/lookup/${decisionTableId}
Available version
51.0
Requires Chatter
No
HTTP methods
POST
Request body for POST
JSON example
1{
2   "conditions":[
3      {
4         "conditionsList":[
5            {
6               "fieldName":"Product__c",
7               "value":"Nike",
8               "operator":"Matches"
9            },
10            {
11               "fieldName":"Price__c",
12               "value":1000,
13               "operator":"GreaterThan"
14            }
15         ]
16      },
17      {
18         "conditionsList":[
19            {
20               "fieldName":"Product__c",
21               "value":"Adidas",
22               "operator":"Matches"
23            },
24            {
25               "fieldName":"Price__c",
26               "value":1500,
27               "operator":"GreaterThan"
28            }
29         ]
30      }
31   ]
32}
Properties
Name Type Description Required or Optional Available Version
conditions Decision Table Condition[] The list of decision table conditions on which the decision table executes and provides outcomes. Required 55.0
datasetLinkName String The API name of the dataset link provided as an input for the decision table execution. Optional 55.0
Response body for POST
Decision Table Outcome
Sample Response body
1{
2   “outcomeType” : “Single Match”,
3   "outcomeList" : [
4      {
5         “values” : {
6            “Discount_c”: 5
7         }
8      }
9   ]
10}