Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Expression Set Invocation (POST)

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

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