Sub topic 3
Escalation Actions: Reassign and Notify
Assume you know Salesforce Setup, queues, assignment rules, and basic SOQL or Apex. An escalation rule evaluates open Cases after a time threshold. Its actions can change ownership and send notifications.
Reassign and notify
An escalation action can:
- Reassign the Case to a user or queue.
- Send an email to the Case owner, a user, or a queue address.
- Use a template to include Case details.
- Change fields, such as Priority, through a field update.
A common sequence is to route new Cases to a support queue, then move overdue Cases to a specialist queue and notify its manager.
| Action | Typical purpose |
|---|---|
| Reassign owner | Make overdue work visible to the next support team |
| Send email | Alert an agent or manager without changing ownership |
Testing and troubleshooting
Test with a Case that clearly meets the rule criteria. Check these points in order:
- Confirm the Case is open and matches the rule entry.
- Confirm the rule is active and its order is correct.
- Check the Case business hours and escalation age.
- Verify the recipient, queue membership, email address, and field permissions.
- Inspect Case history and email logs.
Rule entries are evaluated in order. A broad first entry can prevent a later, more specific entry from running.
Monitoring queues and escalations
Use list views and reports to find work that needs attention:
SELECT Id, CaseNumber, Subject, Priority, Owner.Name, CreatedDate
FROM Case
WHERE IsEscalated = true AND IsClosed = false
ORDER BY CreatedDate ASCA separate view can show open Cases still owned by queues. Track queue age, escalated volume, and time to first response.
Apex routing
Apex does not apply the default Case assignment rule automatically. Enable it with DMLOptions, or assign a queue directly through its Group record.
Group tier2 = [
SELECT Id FROM Group
WHERE Type = 'Queue' AND DeveloperName = 'Tier2_Support'
LIMIT 1
];
Case c = new Case(
Subject = 'Data export fails',
Origin = 'Email',
OwnerId = tier2.Id
);
Database.DMLOptions options = new Database.DMLOptions();
options.assignmentRuleHeader.useDefaultRule = true;
c.setOptions(options);
insert c;Choosing other routing tools
Use Omni-Channel when routing should consider agent capacity, presence, skills, or workload in real time. Use queues and assignment rules for predictable, criteria-based ownership.
Entitlements and milestones fit SLA-driven processes. A milestone measures a commitment, such as first response within four business hours, and can trigger actions when it is approaching or violated.
Design guidelines
Keep criteria specific, document rule order, and separate initial routing from escalation. Use stable queue names and dedicated notification groups. Test business hours, holidays, reassignment permissions, and email delivery in a sandbox. Report on both queue age and escalation status.
Exercise
A high-priority Case remains in the general queue after its escalation time. What should you check first?
Show answer
Confirm that the Case matches the active rule entry, the rule entry order is correct, and the Case uses the expected business hours. Then verify the reassignment action and the target queue.