Newer Version Available

This content describes an older version of this product. View Latest

Expression Set (POST)

Creates an expression set in Business Rules Engine. An expression set performs a series of calculations by using lookup tables and user-defined variables and constants.
Resource
1/connect/business-rules/expression-set
Resource Example
1https://yourInstance.salesforce.com/services/data/v59.0/connect
2/business-rules/expression-set
Available version
58.0
Requires Chatter
No
HTTP methods
POST
Request body for POST
Root XML tag
<ExpressionSetInput>
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
context​Definitions 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
usage​Type String Usage type of the expression set.

Valid values are:

  • AiAccelerator​SubscriberChurn​Prediction—Used for Industries Einstein
  • Bre—Used for Business Rules Engine
  • CustomLoyalty—Used for Loyalty Management
  • DefaultPricing—Used for Pricing Plans in Enterprise Product Catalog (EPC) by Communications Cloud
  • Qualification—Used for Industries Communications, Media, and Energy (CME)
  • RecordAlert—Used for Financial Services Cloud
  • ShipAndDebit—Used for Manufacturing Cloud
  • TierProcessing—Used for Loyalty Management
  • TransactionJournal—Used for Loyalty Management
  • WarrantyClaim—Used for Manufacturing Cloud
Required 58.0
versions Expression Set Version Input[] List of the expression set versions. Optional 58.0
Response body for POST
Expression Set Output