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

Sample Response body 

1{
2   “outcomeType” : “Single Match”,
3   "outcomeList" : [
4      {
5         “values” : {
6            “Discount_c”: 5
7         }
8      }
9   ]
10}

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 

NameTypeDescriptionRequired or OptionalAvailable Version
conditionsDecision Table Condition[]The list of decision table conditions on which the decision table executes and provides outcomes.Required55.0
datasetLinkNameStringThe API name of the dataset link provided as an input for the decision table execution.Optional55.0

Response Body for POST 

Decision Table Outcome