Logo
Salesforce Developers API Documentation

Expression Set Invocation

POST {{_endpoint}}/services/data/v{{version}}/connect/business-rules/expressionset/:expressionSetAPIName

https://developer.salesforce.com/docs/atlas.en-us.246.0.industriesreference.meta/industriesreference/connectresourcesbreexpressionset.htm

WATCH OUT: path expressionSet has no dash gjeffcock@salesforce.com

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

JSON example 2

{
  "inputs": [
    {
      "age": "25",
      "state": "CA"
      "PatientId":"001xx000003GYjnAAG"
      "__actionContextCode":"001xx000003GYjnAAG"    }

  ],
  "options": {
    "effectiveDate": "2022-12-03T10:15:30Z",
    "useDatesOnly": "true"
  }
}

Note

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

Properties

Name Type Description Required or Optional Available Version
inputs Map[] 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.
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

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 




RESPONSES

status Created

{ "aggregationResults": { "results": {} }, "executionId": "33045b23-8970-4fbe-a80c-8f4302592566", "outputs": [ { "results": { "output": 1 } } ] }



Curl
curl -X POST '/services/data/v61.0/connect/business-rules/expressionset/:expressionSetAPIName'

ENDPOINTS