What is the exact function of Operating Hours in Salesforce Field Service scheduling?
Answer
Basics: Operating Hours is a standard object with a time zone and child Time Slots. It is attached to Service Territories, Service Territory Members, and accounts (as customer visiting hours).
How it works: For each candidate slot the engine intersects territory or member hours, subtracts Resource Absences, and for customer constraints applies the Service Appointment Visiting Hours work rule with the account's hours. A slot outside the intersection is invalid, so it is never offered. Time Slots can be Normal or Extended; extended slots are only used when the policy allows it (for example emergencies).
Advanced / deep dive: Hours are evaluated in their own time zone, so a technician in one zone serving customers in another needs matching hours definitions. Member hours override territory hours; they do not add to them. Customer hours are one of several inputs for appointment booking windows; arrival windows set on the appointment are separate from operating hours. Operating Hours are also used by Appointment Assistant slot generation. Since Operating Hours records can be shared across many territories, editing one record affects all linked records, so changes should be planned.
Hidden gotchas & must-remember points:
- Operating Hours is distinct from Business Hours; they cannot be swapped.
- Editing a shared Operating Hours record changes every territory and member that uses it.
- Absence overrides operating hours; model holidays as Resource Absences or territory-level holiday records, not by deleting slots.
- Wrong time zone is the most common cause of "slots missing" or shifted appointments.
- Extended time slots are not used unless the policy is configured to use them.
Best practice: Maintain reusable hours records per shift pattern and time zone, and document who owns changes.