Newer Version Available
EscalationRules
1<types>
2 <members>*</members>
3 <name>EscalationRules</name>
4 </types>1<types>
2 <members>Case</members>
3 <name>EscalationRules</name>
4 </types>1<types>
2 <members>Case.samplerule</members>
3 <members>Case.newrule</members>
4 <name>EscalationRule</name>
5 </types>File Suffix and Directory Location
EscalationRules for an object have the suffix .escalationRules and are stored in the escalationRules folder. For example, all Case escalation rules are stored in the Case.escalationRules file.
Version
EscalationRules components are available in API version 27.0 and later.
Fields
| Field Name | Field Type | Description |
|---|---|---|
| escalationRule | EscalationRule[] | Represents one escalation rule and specifies whether it’s active or not. Escalation rules are processed in the order they appear in the EscalationRules container. |
EscalationRule
| Field Name | Field Type | Description |
|---|---|---|
| active | boolean | Indicates whether the escalation rule is active (true) or not (false). |
| fullname | string | Inherited from Metadata, this field is defined in the WSDL for this
metadata type. It must be specified when creating, updating, or
deleting. See createMetadata() to see an
example of this field specified for a call. This value can't be null. |
| ruleEntry | RuleEntry[] | Contains the definitions of the rule entries in the escalation rule. |
RuleEntry
Represents the fields used by the rule.
| Field Name | Field Type | Description |
|---|---|---|
| booleanFilter | string | Advanced filter conditions that were specified for the rule. |
| businessHours | string | The hours when escalation actions are performed. Specify only if businessHoursSource is set to Static. |
| businessHoursSource | BusinessHoursSourceType (enumerations of type string) | Valid values are:
|
| criteriaItems | FilterItem | The items in the list that define the assignment criteria. |
| disableEscalationWhenModified | boolean | Indicates whether the escalation is disabled when the record is modified true) or not (false). |
| escalationAction | EscalationAction[] | The actions to perform when the escalation criteria are met. |
| escalationStartTime | EscalationStartTimeType (enumeration of type string) | Indicates the start time for the escalation. Valid values are:
|
| formula | string | The validation formula. Specify either formula or criteriaItems, but not both fields. |
EscalationAction
Describes the action to take for an escalation rule.
| Field Name | Field Type | Description |
|---|---|---|
| assignedTo | string | The name of the user or queue the item is assigned to. |
| assignedToTemplate | string | Specifies the template to use for the email that is automatically
sent to the new owner specified by the escalation rule. Lightning email templates aren’t packageable. We recommend using a Classic email template. |
| assignedToType | AssignToLookupValueType (enumeration of type string) | Valid values are:
|
| minutesToEscalation | int | The number of minutes until the escalation occurs. |
| notifyCaseOwner | boolean | Indicates that the owner of the case is notified when the case is escalated true) or not (false). |
| notifyEmail | string | Specifies the email address of the user to notify. |
| notifyTo | string | Specifies the user to notify. |
| notifyToTemplate | string | Specifies the template to user for the notification email. |
Declarative Metadata Sample Definition
The following is an example EscalationRules component:
1<EscalationRules xmlns="http://soap.sforce.com/2006/04/metadata">
2 <escalationRule>
3 <fullName>samplerule</fullName>
4 <active>false</active>
5 <ruleEntry>
6 <businessHours>test</businessHours>
7 <businessHoursSource>Static</businessHoursSource>
8 <criteriaItems>
9 <field>Case.Description</field>
10 <operation>contains</operation>
11 <value>test</value>
12 </criteriaItems>
13 <escalationAction>
14 <assignedTo>someuser@org.com</assignedTo>
15 <assignedToTemplate>emailtemplatename</assignedToTemplate>
16 <assignedToType>User</assignedToType>
17 <minutesToEscalation>1440</minutesToEscalation>
18 <notifyCaseOwner>false</notifyCaseOwner>
19 </escalationAction>
20 <escalationStartTime>CaseLastModified</escalationStartTime>
21 </ruleEntry>
22 </escalationRule>
23</EscalationRules>Wildcard Support in the Manifest File
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.