Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Eligibility Rule (POST)

Create and update rules associated with decision tables.
Resource
1/connect/service-automation/eligibility-rule
Resource example
1https://yourInstance.salesforce.com/services/data/v67.0/connect/service-automation/eligibility-rule
Available version
66.0
HTTP methods
POST
Request body for POST
JSON example
1{
2  "sourceObjectName": "ProductQualification",
3  "sourceObjectRecordId": "1234",
4  "decisionTableId": "456",
5  "conditionCriteria": "1 AND 2 AND 3 AND 4 AND 5 AND 6 AND 7 AND 8",
6  "conditionType": "All",
7  "ruleValue": [
8    {
9      "fieldName": "Country",
10      "fieldValue": "USA",
11      "operator": "Equals",
12      "domainEntity": "Account",
13      "domainEntityId": "xyz"
14    },
15    {
16      "fieldName": "ProductId",
17      "fieldValue": "123",
18      "operator": "Equals",
19      "domainEntity": "Account",
20      "domainEntityId": "xyz"
21    },
22    {
23      "fieldName": "ParentProductId",
24      "fieldValue": "123",
25      "operator": "Equals",
26      "domainEntity": "Account",
27      "domainEntityId": "xyz"
28    }
29  ]
30}
Properties
Name Type Description Required or Optional Available Version
condition​Criteria String Custom logic that's used to decide how the input fields are processed. Required 66.0
conditionType String Condition logic that's used for input fields. Required 66.0
decisionTableId String The unique identifier of the decision table that's associated with the eligibility rule. Required 66.0
ruleValue Eligibility Rule Value Input[] Details of the rule value. Required 66.0
source​ObjectName String Name of the source object associated with the decision table. Required 66.0
sourceObject​RecordId String The unique identifier of the source object record. Required 66.0
Response body for POST
Eligibility Rule