Expression Set Invocation (POST)

Invokes expression sets in Business Rule Engine.

Resource 

1/connect/business-rules/expressionSet/{expressionSetName}

The {expressionSetName} parameter is the name of the expression set.

Resource Example 

1https://{yourInstance}.salesforce.com/services/data/vXX.X/connect
2/business-rules/expressionSet/{expressionSetName}

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

Available Version 

55.0

Requires Chatter 

No

HTTP Methods 

POST

Request Body for POST 

JSON Example 

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

NameTypeDescriptionRequired or OptionalAvailable Version
inputsMap<String, Object>[]List of inputs passed to an expression set. An input may contain multiple variables.
Note:
  • 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.
Required55.0
optionsExpression Set Options InputThe options for executing an expression set.Optional55.0

Response Body for POST 

Business Rules Result