Newer Version Available
Decision Table Execution
- 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 with Dataset Link
-
1{ 2 "datasetLinkName" : "Product_Records", 3 "conditions" : { //Wrapper of conditions 4 "conditions" : [ 5 { 6 "name": "Brand__c", 7 "value": "Cloud Kicks", 8 "operator": "Matches" 9 }, 10 { 11 "name": "Highest_Price_Point_c", 12 "value": "500", 13 "operator": "LessOrEqual" 14 } 15 ] 16 } 17} - JSON example without Dataset Link
-
1{ 2 "conditions" : { //Wrapper of conditions 3 "conditions" : [ 4 { 5 "name": "Brand__c", 6 "value": "Cloud Kicks", 7 "operator": "Matches" 8 }, 9 { 10 "name": "Highest_Price_Point_c", 11 "value": "500", 12 "operator": "LessOrEqual" 13 } 14 ] 15 } 16} - 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}