Newer Version Available

This content describes an older version of this product. View Latest

Decision Table Execution

Execute an active decision table.
Resource
1services/data/vXX.X/connect/decision-table/${decisionTableId}
Available version
51.0
Requires Chatter
No
HTTP methods
POST
Request body for POST
Root XML tag
decisionTableInput
JSON example without dataset Link
1{
2   “conditions” :{
3      "conditionsList" : [
4         {
5            "fieldName": "Product__c",
6            "value": "Cloud Kicks",
7            "operator": "Matches"
8         },
9         {
10            "fieldName": "Price__c",
11            "value": 1000,
12            "operator": "GreaterThan"
13         }
14      ]
15   }
16}
JSON example with dataset Link
1{
2   "datasetLinkName" : "Product_Mapping",
3   "conditions" : {
4      "conditionsList" : [
5         {
6            "fieldName": "ProductName__c",
7            "value": "Cloud Kicks"
8         },
9         {
10            "fieldName": "Price__c",
11            "value": 1000
12         }
13      ]
14   }
15}
Properties
Name Type Description Required or Optional Available Version
conditions Decision Table Condition[] List of decision table conditions on which the decision table executes and provides outcomes. Required 51.0
datasetLinkName String The API name of the dataset link provided as an input for the decision table execution. Optional 51.0
Response body for POST
Decision Table Output
Sample Response body
1{
2   “outcomeType” : “Single Match”,
3   "outcomeList" : [
4      {
5         “values” : {
6            “Discount_c”: 5
7         }
8      }
9   ]
10}