Invoke

POST {{_endpoint}}/services/data/v{{version}}/connect/business-rules/decision-table/lookup/:decisionTableId

Invoke Decision Tables

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

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

Resource example

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

Available version

58.0

Requires Chatter

No

HTTP methods

POST

Request body for POST

JSON example

{
   "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"
          }
        ]

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

Decision Table Bulk Outcome

Output representation of the decision table bulk look-up.

Property NameTypeDescriptionFilter Group and VersionAvailable Version
outputsDecision Table OutcomeList of the output of the Decision Table bulk lookup.Small, 58.058.0

Request Body

{"datasetLinkName"=>"transactionMapping", "conditions"=>[{"conditionsList"=>[{"fieldName"=>"Product__c", "value"=>"Nike", "operator"=>"Matches"}, {"fieldName"=>"Price__c", "value"=>1000, "operator"=>"GreaterThan"}]}, {"conditionsList"=>[{"fieldName"=>"Product__c", "value"=>"Adidas", "operator"=>"Matches"}, {"fieldName"=>"Price__c", "value"=>1500, "operator"=>"GreaterThan"}]}]}

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}]}