Expression Set (PATCH)
Resource
1/connect/business-rules/expression-set/${expressionSetId}Resource Example
1https://yourInstance.salesforce.com/services/data/v68.0/connect/business-rules/expression-set/$11Oxx0000006PcLEAUAvailable Version
58.0
Requires Chatter
No
HTTP Methods
PATCH
Request Body for PATCH
JSON Example
1{
2 "name": "CTX Mapping ES",
3 "apiName": "CTX_Mapping_ES_1",
4 "description": "...",
5 "usageType": "Bre",
6 "contextDefinitions": [
7 {
8 "id": "11Oxx0000006PcLEAU"
9 }
10 ],
11 "versions": [
12 {
13 "name": "CTX_Mapping_ES_1 V1",
14 "apiName": "CTX_Mapping_ES_1_V1",
15 "description": "Sample CTX Mapping",
16 "startDate": "2022-11-14T20:31:47.000+0000",
17 "endDate": "2022-11-14T20:31:47.000+0000",
18 "versionNumber": 1,
19 "rank": 1,
20 "enabled": true,
21 "showExplExternally": false,
22 "steps": [
23 {
24 "name": "Condition1",
25 "description": "Condition step for conditions w.r.t product",
26 "sequenceNumber": 1,
27 "resultIncluded": true,
28 "stepType": "Condition",
29 "conditionExpression": {
30 "expression": "productName == 'iPhone' && productColor == 'Red'",
31 "resultParameter": "condition_output__1"
32 }
33 }
34 ],
35 "variables": [
36 {
37 "name": "productName",
38 "collection": false,
39 "dataType": "Text",
40 "description": "productName",
41 "input": true,
42 "output": false,
43 "type": "Variable"
44 },
45 {
46 "name": "productColor",
47 "collection": false,
48 "dataType": "Text",
49 "description": "productColor",
50 "input": true,
51 "output": false,
52 "type": "Variable"
53 },
54 {
55 "name": "condition_output__1",
56 "dataType": "Boolean",
57 "description": "condition_output__1",
58 "input": false,
59 "output": true,
60 "resultStep": "Condition1",
61 "type": "Variable"
62 }
63 ]
64 }
65 ]
66}Properties
| Name | Type | Description | Required or Optional | Available Version |
|---|---|---|---|---|
| apiName | String | Unique name of the expression set. | Required | 58.0 |
| contextDefinitions | Context Definition Input | List of context definitions in an expression set. | Optional | 58.0 |
| description | String | Description of the expression set. | Optional | 58.0 |
| name | String | Name of the expression set. | Required | 58.0 |
| usageType | String | Usage type of the expression set. Valid value is Bre. The default value is Bre. When Business Rules Engine is enabled for a Salesforce org, the default value is Bre. Other usage types may be available to you depending on your industry solution and permission sets. |
Required | 58.0 |
| versions | Expression Set Version Input[] | List of the expression set versions. | Optional | 58.0 |