Sub topic 7
Business Hours and Holidays
This chapter assumes you can navigate Setup, know how cases move from New to Closed, and have seen escalation rules at a high level. Business hours decide when the clock runs for age-based escalation. Here you will define them, attach holidays, and see where Salesforce applies them.
What business hours do
Business hours define the days and times your support team works. Salesforce uses them to decide whether time counts toward a case's age. A case opened at 6 p.m. Friday should not escalate on Saturday morning if your team is offline.
Business hours matter in two places:
- Escalation rules can count age only during business hours.
- Entitlement processes and milestones use them to calculate target times.
You can also assign business hours to a case itself through the Business Hours field on the Case object.
Create business hours
- In Setup, enter Business Hours in Quick Find and select Business Hours.
- Click New Business Hours.
- Enter a name, such as
EMEA Support. - Select the time zone.
- Set start and end times for each day. Leave both blank to mark the day as closed. Set both to 12:00 AM for 24-hour coverage.
- Save.
One set is marked as the default. Cases that have no specific business hours use the default set. You can create several sets, such as one per region or one for a premium support tier.
Add holidays
A holiday is a date or date range when business hours do not apply. Holidays are separate records, so you create them once and link them to as many business hours sets as you need.
- In Setup, search for Holidays and select Holidays.
- Click New Holiday.
- Enter a name and a date. For a recurring holiday, check Recurring Holiday and set the recurrence pattern.
- To cover only part of the day, uncheck All Day and enter start and end times.
- Save, then use Add/Remove in the Business Hours related list to link the holiday to the business hours it affects.
A holiday that is not linked to a business hours record has no effect. This is a common source of "why did this escalate on Christmas Day" questions.
Apply business hours to escalation
In an escalation rule entry, the Escalation Times section controls the clock:
- Use business hours specified on the case counts age only in the hours assigned to that case's Business Hours field.
- Ignore business hours counts age in calendar time, every hour of every day.
You set the age limit in hours on the entry, for example 4. If you use business hours, a case that arrives at 4:30 p.m. with a 5 p.m. close has 30 minutes counted that day, and the remaining time continues when the team opens again.
Common mistakes
| Symptom | Likely cause |
|---|---|
| Case escalates at night | Entry is set to ignore business hours |
| Case never escalates over a weekend | Entry uses business hours, which exclude the weekend |
| Holiday has no effect | Holiday is not linked to the business hours record |
| Time seems off by hours | Business hours time zone differs from the team's actual location |
Check your understanding
Exercise
A case arrives on a company holiday. The escalation entry uses business hours and has a 2-hour age limit, but the case escalates anyway when the team returns the next morning after only 10 minutes of work time. What two things should you check?
Show answer
First, check that the holiday record is linked to the business hours set that the case uses. If it is not linked, the holiday has no effect. Second, check which business hours the case actually has in its Business Hours field. It may be using the default set rather than the one you edited. Also confirm the entry is not set to ignore business hours.
Exercise
Your team works 9 a.m. to 5 p.m. Monday to Friday. An entry has a 4-hour age limit and uses business hours. A case is created at 3 p.m. Friday. When does it escalate if no one touches it?
Show answer
It escalates at 11 a.m. Monday. Two hours count on Friday (3 to 5 p.m.), the weekend is excluded, and the remaining two hours count Monday from 9 to 11 a.m.