Sub topic 9
Escalation actions: reassign and notify
This chapter covers what happens when an escalation rule entry matches a case: the escalation actions. It assumes you can already create a queue and an escalation rule with age-based entries. It also assumes you have set up business hours.
What an escalation action is
An escalation rule entry decides which cases qualify and how old they must be. The escalation actions decide what Salesforce does once a case reaches that age. Each rule entry can have up to five escalation actions. Each action has its own age limit, so you can build a ladder of responses.
Every action can do three things:
- Reassign the case to a user or a queue.
- Notify the new owner, the previous owner, or other people.
- Send a notification to a list of extra email addresses.
When an action fires, Salesforce also sets the case's IsEscalated field to true. That flag is what lets you report on escalated cases later.
Reassigning the case
Reassignment is optional. If you do not choose a new owner, the case stays with its current owner and only the notification is sent.
You can reassign to:
- A specific user, such as a support manager.
- A queue, such as
Tier2_Support.
Queues work well here. A manager may be on leave, but a queue is always staffed by its members. A case that moves from an agent to a queue returns to the "not yet picked up" state, so it shows up in queue list views.
Notifying people
An action can send email in three ways:
- Notify Case Owner: tells the owner after reassignment. If the case moves to a queue, queue members receive the message only if the queue has email notifications turned on.
- Notify: tells a named user, such as the previous owner or a manager.
- Additional emails: up to five other addresses, useful for people who do not have Salesforce licenses.
The email uses an email template. Choose one that includes merge fields such as the case number, subject, and priority. Without these, recipients cannot tell which case needs attention.
A worked example
Suppose high-priority cases must not wait long in the Tier 1 queue.
| Action order | Age limit | Reassign to | Notify |
|---|---|---|---|
| 1 | 2 hours | Stays with owner | Case owner |
| 2 | 4 hours | `Tier2_Support` queue | Previous owner, support manager |
| 3 | 8 hours | Support director | Director and escalation mailbox |
Age is measured from the case's creation time, or from the last modification if you chose that option on the rule entry. Because the rule uses business hours, the hours count only inside your support schedule.
Checking that it worked
Use this query to list open cases that escalation has flagged:
SELECT Id, CaseNumber, Subject, Priority, Owner.Name, CreatedDate
FROM Case
WHERE IsEscalated = true AND IsClosed = false
ORDER BY CreatedDate ASCCheck Owner.Name to confirm that reassignment happened as designed.
Common errors
- No email arrives. Check that the email template is active and that the recipient's email is valid. Also confirm the org's email deliverability is set to all email.
- The case never escalates. Escalation only applies to open cases that match the active rule entry. Closed cases are skipped. Only one escalation rule can be active at a time.
- Timing seems off. Escalation is evaluated roughly every 30 minutes, so an action can fire a little after its age limit.
- Cases keep escalating. Escalation stops once a case is closed. Make sure the status is updated. If the rule resets on modification, edits can restart the clock.
Exercise
An escalation action has an age limit of 4 hours and no new owner selected, but it has "Notify" set to a manager. What happens to the case at 4 hours, and how can you confirm it escalated?
Show answer
The case stays with its current owner and the manager receives an email. Salesforce still sets IsEscalated to true, so the case appears in a query or report that filters on IsEscalated = true and IsClosed = false.