Decision Table Invocation (POST)

Invoke a decision table by passing multiple input conditions within the same request.

Resource 

1/connect/business-rules/decision-table/lookup/${decisionTableId}

The {decisionTableId} parameter is the ID of the decision table.

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/v68.0/connect
2/business-rules/decision-table/lookup/${0lDD2000000004NMAQ}

{yourInstance} is the domain name of your Salesforce instance.

Available Version 

58.0

Requires Chatter 

No

HTTP Methods 

POST

Request Body for POST 

JSON Example 

1{
2   "datasetLinkName" : "transactionMapping",
3   “conditions” :[
4      {
5        “conditionsList”: [
6          {
7              "fieldName": "Product__c",
8              "value": "Nike",
9              "operator": "Matches" //Operator is optional
10          },
11          {
12              "fieldName": "Price__c",
13              "value": 1000,
14              "operator": "GreaterThan"
15          }
16        ]
17      },
18      {
19        “conditionsList”: [
20          {
21              "fieldName": "Product__c",
22              "value": "Adidas",
23              "operator": "Matches" //Operator is optional
24          },
25          {
26              "fieldName": "Price__c",
27              "value": 1500,
28              "operator": "GreaterThan"
29          }
30        ]

Properties 

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

Response Body for POST 

Decision Table Bulk Outcome