Lookup Table
POST {{_endpoint}}/services/data/v{{version}}/connect/business-rules/decision-table/:decisionTableId
Performs a lookup on a decision table.Resource Resource Example Available version 55.0 Requires Chatter No HTTP methods POST Request body for POST JSON example Properties Response body for POST Output representation of the decision table execution.JSON exampleDecision Table (Lookup Table)
/connect/business-rules/decision-table/${decisionTableId}
https://yourInstance.salesforce.com/services/data/v55.0/connect
/decision-table/0lDB0000000TNQzMAO
{
"conditions" : {
"conditionsList" : [
{
"fieldName": "state__c",
"value": "MH"
},
{
"fieldName": "validity__c",
"value": 30
}
]
}
}
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
Decision Table Outcome
{
"errorCode" : null,
"errorMessage" : null,
"outcomeList" : [ {
"values" : {
"amount__c" : "399",
"Name" : "MH 005"
}
}, {
"values" : {
"amount__c" : "499",
"Name" : "MH 006"
}
}, {
"values" : {
"amount__c" : "379",
"Name" : "MH 007"
}
}, {
"values" : {
"amount__c" : "1498",
"Name" : "MH 008"
}
}, {
"values" : {
"amount__c" : "98",
"Name" : "MH 009"
}
}, {
"values" : {
"amount__c" : "251",
"Name" : "MH 010"
}
} ],
"outcomeType" : "Multiple Matches",
"successStatus" : true
}
Property Name
Type
Description
Filter Group and Version
Available Version
errorCode
Integer
The error code if transaction fails for any reason.
Small, 55.0
55.0
errorMessage
String
The error message if transaction fails for any reason.
Small, 55.0
55.0
outcomeList
Decision Table Outcome Item[]
Outcome list that stores two or more outcomes provided by the decision table.
Small, 55.0
55.0
outcomeType
String
The outcome type after the request is successful.
Small, 55.0
55.0
successStatus
Boolean
Indicates the status of the decision table execution.
Small, 55.0
55.0
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
RESPONSES
status Created
{
"errorCode": null,
"errorMessage": null,
"outcomeList": [],
"outcomeType": "No Match",
"successStatus": true
} |
ENDPOINTS