Work Rule Type: Service Appointment Visiting Hours
Service Appointment Visiting Hours is an Apex work rule type that enforces your
customers’ operating hours. For example, if an account’s operating hours are weekdays between 8:00
AM and noon, appointments for that customer are scheduled only within those hours.
Required Editions
Available in: both Salesforce Classic (not available in all orgs) and Lightning
Experience
The Agentforce Field Service and Operations core features, managed package, and
mobile app are available in Enterprise, Unlimited, and Developer
Editions.
This is a Field Service managed package feature.
To define a customer’s preferred hours of service, create operating hours for them from the
Operating Hours tab. Select the operating hours in the Operating Hours ID field on the account.
Work orders created for the account always inherit the account's operating hours in the Visiting
Hours field, and service appointments use their work order’s visiting hours.
When you’re not using Enhanced Scheduling and Optimization:
Visiting hours use the time zone of the service territory.
If the location has no time zone specified, GMT is used.
When you’re using Enhanced Scheduling and Optimization:
Visiting hours use the time zone of the operating hours record or the time zone of the
service appointment’s service territory, depending on your defined setting. When you work across
multiple time zones, we recommend that you deselect the Use the Visiting Hours
object’s time zone when an appointment has visiting hours setting, so that you use
the time zone of the appointment’s service territory. To access the setting, in the Field
Service Settings tab, click Scheduling | General Logic.
You can add holidays to visiting Operating Hours that represent
the time when customers aren’t available to receive services. These holidays take precedence
over the customers’ preferences for visiting operating hours.
Multiday work doesn’t support visiting hours.
Note Dispatchers can still manually schedule appointments outside a customer’s operating hours,
but a rule violation is shown.
Create work rules from the Work Rules tab. To view or add work rule
fields open the Object Manager in Setup and select the
Work Rule custom object. Add work rules to a scheduling policy from
the Customize Scheduling Policies page in Guided Setup or from the
Scheduling Policy Work Rules related list on a scheduling policy.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.