Invoke
POST {{_endpoint}}/services/data/v{{version}}/connect/business-rules/decision-table/lookup/:decisionTableId
Invoke a decision table by passing multiple input conditions within the same request.Resource Resource example Available version 58.0 Requires Chatter No HTTP methods POST Request body for POST JSON example Properties Response body for POST Output representation of the decision table bulk look-up.Invoke Decision Tables
/connect/business-rules/decision-table/lookup/${decisionTableId}
https://yourInstance.salesforce.com/services/data/v59.0/connect
/business-rules/decision-table/lookup/${0lDD2000000004NMAQ}
{
"datasetLinkName" : "transactionMapping",
“conditions” :[
{
“conditionsList”: [
{
"fieldName": "Product__c",
"value": "Nike",
"operator": "Matches" //Operator is optional
},
{
"fieldName": "Price__c",
"value": 1000,
"operator": "GreaterThan"
}
]
},
{
“conditionsList”: [
{
"fieldName": "Product__c",
"value": "Adidas",
"operator": "Matches" //Operator is optional
},
{
"fieldName": "Price__c",
"value": 1500,
"operator": "GreaterThan"
}
]
Name
Type
Description
Required or Optional
Available Version
conditions
Decision Table Condition List
The list of decision table conditions on which the decision table executes and provides outcomes.
Required
58.0
datasetLinkName
String
The API name of the dataset link provided as an input for the decision table execution.
Optional
58.0
Decision Table Bulk Outcome
Property Name
Type
Description
Filter Group and Version
Available Version
outputs
Decision Table Outcome
List of the output of the Decision Table bulk lookup.
Small, 58.0
58.0
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
RESPONSES
status Created
{
"outputs": [
{
"errorCode": 400,
"errorMessage": "Specify valid name for Data set Link",
"outcomeList": [],
"outcomeType": null,
"successStatus": false
},
{
"errorCode": 400,
"errorMessage": "Specify valid name for Data set Link",
"outcomeList": [],
"outcomeType": null,
"successStatus": false
}
]
} |
ENDPOINTS