Logo
Salesforce Developers API Documentation

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

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

Response body for POST

Decision Table Bulk Outcome

Decision Table Bulk Outcome

Output representation of the decision table bulk look-up.

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



Curl
curl -X POST '/services/data/v61.0/connect/business-rules/decision-table/lookup/:decisionTableId' -d '{"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"}]}]}'

ENDPOINTS