Referral Assignment Rule

The response representation for a single referral assignment rule.

JSON Example 

1{
2  "isSuccess": true,
3  "httpStatusCode": 200,
4  "ruleApiName": "Assign_big_home_loans_to_UserB_1779624043348",
5  "name": "Assign big home loans to User B",
6  "description": "High-value home-loan referrals routed to the senior loan officer.",
7  "status": "Active",
8  "sortOrder": 10,
9  "ruleLogicalExpression": "1 AND 2",
10  "conditions": [
11    {
12      "fieldApiName": "Referral_Product__c",
13      "operator": "Equals",
14      "values": ["homeloan"],
15      "sortOrder": 1
16    },
17    {
18      "fieldApiName": "Referral_Value__c",
19      "operator": "GreaterThan",
20      "values": ["500000"],
21      "sortOrder": 2
22    }
23  ],
24  "assignee": {
25    "type": "USER",
26    "id": "005xx0000002BBBBB2"
27  }
28}

Properties 

Property NameTypeDescription
isSuccessBooleanIndicates whether the API operation is successful (true) or not (false).
httpStatusCodeIntegerHTTP status code that indicates the result of the API operation.
ruleApiNameStringAPI name of the rule.
nameStringDisplay name of the referral assignment rule.
descriptionStringDescription of the referral assignment rule.
statusStringCurrent status of the referral assignment rule, such as Draft, Active, or Inactive.
sortOrderIntegerExecution sort order of the rule.
ruleLogicalExpressionStringLogical expression that determines how conditions are evaluated when a rule has more than one condition. For example, 1 AND 2 AND 3, 1 OR 2 OR 3, or a custom expression such as 1 AND (2 OR 3).
conditionsReferral Assignment Rule Condition[]Criteria that a referral must satisfy for this assignment rule to match. See Referral Assignment Rule Condition.
assigneeReferral Assignment Rule AssigneeUser or queue that receives referrals matching this rule. See Referral Assignment Rule Assignee.