Expression Set Retrieve

GET {{_endpoint}}/services/data/v{{version}}/connect/business-rules/expression-set/:expressionSetId

Expression Set Retrieve and Delete (DELETE, GET)

Endpoints to read, and delete expression set.Resource

/connect/business-rules/expression-set/${expressionSetId}

Resource Example

https://yourInstance.salesforce.com/services/data/v59.0/connect
            /business-rules/expressionSet/$11Oxx0000006PcLEAU

Available version

58.0

Requires Chatter

No

HTTP methods

DELETE, GET

Request body for GET

Root XML tag

JSON example

{
  "name": "CTX Mapping ES",
  "apiName": "CTX_Mapping_ES_1",
  "description": "...",
  "usageType": "Bre",
  "contextDefinitions": [
    {
      "id": "11Oxx0000006PcLEAU"
    }
  ],
  "versions": [
    {
      "name": "CTX_Mapping_ES_1 V1",
      "apiName": "CTX_Mapping_ES_1_V1",
      "description": "Sample CTX Mapping",
      "startDate": "2022-11-14T20:31:47.000+0000",
      "endDate": "2022-11-14T20:31:47.000+0000",
      "versionNumber": 1,
      "rank": 1,
      "enabled": true,
      "showExplExternally": false,
      "steps": [
        {
          "name": "Condition1",
          "description": "Condition step for conditions w.r.t product",
          "sequenceNumber": 1,
          "resultIncluded": true,
          "stepType": "Condition",
          "conditionExpression": {
            "expression": "productName == 'iPhone' && productColor == 'Red'",
            "resultParameter": "condition_output__1"
          }
        }
      ],
      "variables": [
        {
          "name": "productName",
          "collection": false,
          "dataType": "Text",
          "description": "productName",
          "input": true,
          "output": false,
          "type": "Variable"
        },
        {
          "name": "productColor",
          "collection": false,
          "dataType": "Text",
          "description": "productColor",
          "input": true,
          "output": false,
          "type": "Variable"
        },
        {
          "name": "condition_output__1",
          "dataType": "Boolean",
          "description": "condition_output__1",
          "input": false,
          "output": true,
          "resultStep": "Condition1",
          "type": "Variable"
        }
      ]
    }
  ]
}

Properties

NameTypeDescriptionRequired or OptionalAvailable Version
apiNameStringUnique name of the expression set.Required58.0
context​DefinitionsContext Definition InputList of context definitions in an expression set.Optional58.0
descriptionStringDescription of the expression set.Optional58.0
nameStringName of the expression set.Required58.0
usage​TypeStringUsage 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
Required58.0
versionsExpression Set Version Input[]List of the expression set versions.Optional58.0

Response body for GETExpression Set Output

RESPONSES

status: OK

{"apiName":"myExpressionSet","contextDefinitions":[],"id":"9QLHo000000LBjEOAW","name":"myExpressionSet","usageType":"Bre","versions":[{"apiName":"myExpressionSet_V1","description":"myExpressionSet V1 Description","enabled":true,"id":"9QMHo000000LBjJOAW","name":"myExpressionSet V1","rank":1,"showExplExternally":true,"startDate":"2023-09-06T09:27:06.000Z","steps":[{"actionType":"AssignParameterValues","assignment":{"assignedParameter":"condition_output__1","expression":"true"},"description":"my Description","name":"myCalculation","resultIncluded":true,"sequenceNumber":1,"shouldExposeConditionDetails":false,"shouldExposeExecPathMsgOnly":true,"shouldShowExplExternally":false,"stepType":"BusinessKnowledgeModel"}],"variables":[{"collection":false,"dataType":"Boolean","description":"condition_output__1","input":false,"name":"condition_output__1","output":true,"type":"Variable","value":"False"},{"collection":false,"dataType":"Boolean","description":"condition_output__2","input":false,"name":"condition_output__2","output":false,"type":"Variable","value":"False"}],"versionNumber":1}]}