EscalationRules is the object-scoped container for rules that automatically escalate unresolved cases after a specified time. Its escalationRule collection contains named EscalationRule definitions. Each child rule contains ruleEntry definitions, which select cases and define timing policies, and escalationAction definitions for timed reassignment and notification.
Do not confuse the container with an individual rule. Activation belongs to each child rule through active, not to EscalationRules. The container and a named child also use different type names and member names in a deployment or retrieval manifest.
Key Elements
Only escalationRule is a top-level collection on the container. The remaining elements below belong to its child rules, rule entries, or actions, as indicated.
| Element | What the Element Controls |
|---|---|
escalationRule |
The collection of child escalation rules. Rules are processed in the order they appear in this container. |
fullName |
The child rule's identity. Required and non-null when creating, updating, or deleting that rule. |
active |
Whether the child rule is active: true or false. Inclusion in the container does not establish activation. |
ruleEntry |
The collection of entries within a child rule. Each entry combines matching criteria, timing settings, and escalation actions. |
criteriaItems, formula
|
Alternative ways to select cases. Specify one, not both. Criteria can contain field, operation, value, and valueField; formulas can contain embedded field references. |
booleanFilter |
Advanced filter conditions for criteria-based matching. |
escalationStartTime |
The entry's timing basis. Allowed values are CaseCreation and CaseLastModified. |
disableEscalationWhenModified |
Whether modifying the record disables escalation. This is separate from choosing the last-modified time as the timing basis. |
businessHoursSource, businessHours
|
The entry's business-hours configuration. The source accepts None, Case, or Static. Specify businessHours only with Static; it identifies the hours when actions are performed. |
escalationAction |
The collection of actions to perform when an entry's escalation criteria are met. |
minutesToEscalation |
The number of minutes until an individual action escalates. Interpret it together with the entry's start-time, modification, and business-hours settings. |
assignedTo, assignedToType
|
The action's new owner and owner type. The type accepts User or Queue; it determines how to interpret assignedTo. |
assignedToTemplate, notifyToTemplate
|
The action's email templates for the new owner and the notification email, respectively. Both reference EmailTemplate metadata. |
notifyCaseOwner |
Whether the case owner is notified when the case escalates. |
notifyTo, notifyEmail
|
A user to notify and an email address to notify, respectively. These are notification recipients, not reassignment targets. |
Behavior and Constraints
Matching and timing work together
Each rule entry uses either formula or criteriaItems to select cases. Do not populate both. For criteria-based matching, booleanFilter supplies advanced filter conditions.
An action's minutesToEscalation is not a complete description of when it should run. To diagnose an unexpected escalation time, inspect these settings together:
-
escalationStartTime: whether timing starts from case creation or the case's last modification. -
disableEscalationWhenModified: whether a record modification disables escalation. -
businessHoursSourceand, forStatic,businessHours: the business-hours configuration affecting when escalation actions are performed. -
minutesToEscalation: the delay configured on that particular action.
Setting escalationStartTime to CaseLastModified is not the same as setting disableEscalationWhenModified to true. The first chooses a timing basis; the second disables escalation when the record is modified.
Reassignment is separate from notification
Within an action, assignedTo identifies the new user or queue. When assignedToType is Queue, it references queue metadata. When the type is User, do not treat that same element as a queue dependency.
assignedToTemplate selects the email template for the new owner. notifyToTemplate selects the notification email template. Separately, notifyCaseOwner controls notification to the case owner, notifyTo identifies a user, and notifyEmail supplies an email address. A reassignment target and a notification recipient are different settings.
Activation and processing order belong to the rule structure
Inspect each child rule's active value to determine whether it is active. The container has no activation setting. Escalation rules are processed in the order they appear in the EscalationRules container.
Deployment and Retrieval
Choose the correct manifest scope
A manifest is the package.xml file that identifies which metadata components to access. Use the following type and member combinations:
-
All escalation-rule containers: type
EscalationRules, member*. This type supports wildcard access for all applicable objects. -
All escalation rules for Case: type
EscalationRules, memberCase. -
A named rule on Case: type
EscalationRule, memberCase.samplerule. Additional named rules, such asCase.newrule, can be listed under the same singular type.
The plural type addresses the object's container; the singular type addresses an individual child rule. Do not substitute Case, the container name, for the child rule's identity. The child's fullName must be specified and cannot be null for create, update, or delete operations.
Object-level components use the .escalationRules suffix and reside in the escalationRules directory. For example, the Case container is stored as escalationRules/Case.escalationRules.
Account for templates and criteria dependencies
Lightning email templates are not packageable. Use Classic email templates for escalation email template configuration. The action's assignedToTemplate and notifyToTemplate identify separate template dependencies.
Recipient settings do not reveal every dependency. Within ruleEntry.criteriaItems, both field and valueField can reference custom fields. ruleEntry.formula can also contain embedded field references. Dependency analysis therefore needs the actual criteria and formula contents, not only queue and template names.
Distinguish container deletion from child-rule deletion
A reported org-cleanup attempt rejected deletion of the EscalationRules member Case because it was a standard container that could not be deleted. This container-level report does not establish that every individual EscalationRule is undeletable. Plan operations on named rules using their child identities rather than treating deletion of the Case container as an equivalent operation.
Relationships
EscalationRules contains EscalationRule definitions through escalationRule. Dependencies can occur inside each rule's criteria, formulas, and actions, so they are not limited to top-level container elements.
References
-
Queue:assignedTowithinescalationAction, only whenassignedToTypeisQueue. -
EmailTemplate:assignedToTemplate,notifyToTemplate; the shared rule-entry structure also exposestemplate. The two action-specific elements control the new-owner and notification templates. -
CustomField:fieldandvalueFieldwithincriteriaItems, plus embedded field references informula.
Name-based association: CustomObject is associated through the entire component file base, following the pattern <objectName>. For example, Case.escalationRules associates the container with the standard Case object. This is not an XML reference element and does not, by itself, require deploying the object and rules together or establish a deployment order.
Reported Issues
-
Deleting the Case container was rejected during Metadata API org cleanup. A community report, last edited in 2022, recorded that deleting
EscalationRulesmemberCasefailed because the container was standard and could not be deleted. The report concerns the container, not a demonstrated restriction on every named child rule. See the org-cleanup discussion.
Common Questions
What is the difference between EscalationRules and EscalationRule in package.xml?
EscalationRules addresses an object's container, such as member Case. EscalationRule addresses a named child, such as member Case.samplerule. Use * with the plural type to access all applicable containers.
Why is a case escalating at an unexpected time?
Check more than minutesToEscalation. The entry's escalationStartTime, disableEscalationWhenModified, businessHoursSource, and any static businessHours setting also affect the timing policy.
Does including a rule in EscalationRules make it active?
No. Activation is controlled by active on each child EscalationRule. The container itself has no activation setting.
Which dependencies should I inspect before deploying escalation rules?
Inspect queue assignments when assignedToType is Queue, the action's email templates, and field references in criteria and formulas. Lightning email templates are not packageable; Classic templates are recommended for the escalation email configuration.
Can I delete the Case escalation-rules container to remove its rules?
A community cleanup report recorded rejection of deleting the standard Case container. Do not equate container deletion with operations on named child rules. A child uses an identity such as Case.samplerule, and its fullName is required for deletion.