Expression Set Invocation (POST)

Invokes expression sets in Business Rule Engine.
Resource
/connect/business-rules/expressionSet/${expressionSetName}
Resource Example
https://yourInstance.salesforce.com/services/data/vXX.X/connect
/business-rules/expressionSet/${expressionSetName}
Available version
55.0
Requires Chatter
No
HTTP methods
POST
Request body for POST
JSON example 1
{
  "inputs": [
    {
      "age": "25",
      "state": "CA",
      "PatientId": "001xx000003GYjnAAG"
    }
  ],
  "options": {
    "effectiveDate": "2022-12-03T10:15:30Z",
    "useDatesOnly": "true",
    "actionContextCode": "9QLxx0000004C92GAE",
    "explainabilitySpecName": "ES_One_Explainability"
  }
}
JSON example 2
{
  "inputs": [
    {
      "age": "25",
      "state": "CA",
      "PatientId":"001xx000003GYjnAAG",
      "__actionContextCode":"001xx000003GYjnAAG"
    }
  ],
  "options": {
    "effectiveDate": "2022-12-03T10:15:30Z",
    "useDatesOnly": "true"
  }
}

You can use more than one actionContextCode for multiple sets of inputs, passed in a single API call.

Note

Properties
Name Type Description Required or Optional Available Version
inputs Map<String, Object>[] List of inputs passed to an expression set. An input may contain multiple variables.
  • If the expression set uses a field alias as a variable, append Id to the object alias to which the field alias belongs, and pass the ID of the source object linked to the object alias.

If the expression set uses a context definition, append Id to the context definition developer name and pass the context ID as the value.

Note

Required 55.0
options Expression Set Options Input The options for executing an expression set. Optional 55.0
Response body for POST
Business Rules Result