---
schema_version: "1"
id: 91de3c4a9578df7ae0beb3c04c30d619b2331489f9a4a397d32b0125027bb3e8
title: "Workforce Scheduling Rule Type: Service Appointment Visiting Hours"
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/wfs_work_rules_sa_visiting_hours.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.wfs_work_rules_sa_visiting_hours.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: eb238f60127f7d601c9a8af2fa84b9abd248499785602b5dfd4332d1b47d2fae
description: Service Appointment Visiting Hours is a Workforce Scheduling 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. Service Appointment Visiting Hours work rules are applicable to field and on-site scheduling.
products:
  - Public Sector
  - Service Cloud
release: "264"
---
# Workforce Scheduling Rule Type: Service Appointment Visiting Hours

Service Appointment Visiting Hours is a Workforce Scheduling 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. Service Appointment Visiting Hours work rules are applicable to field and on-site scheduling.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Enterprise</strong> and <strong>Unlimited</strong> Editions</td></tr></tbody></table>

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.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-workforce_scheduling-264-0-0-production-enus/1eb114f2-bdf8-40c9-98ed-accb880f7906/images/icon_note.png)

Note Dispatchers can still manually schedule appointments outside a customer’s operating hours, but a rule violation is shown.

Create work rules from Setup. Find and go to **Workforce Scheduling**, and under **Appointment Scheduling Logic**, select **Work Rules**. To view or add work rule fields open the Object Manager in Setup and select the **Work Rule** custom object. To add work rules to a scheduling policy, see [Create and Manage Scheduling Policies in Workforce Scheduling](https://help.salesforce.com/s/articleView?id=service.wfs_policies_manage.htm&release=264.0.0&type=5 "Scheduling policies combine work rules and service objectives to control which resources and time slots Workforce Scheduling assigns to each appointment. Work rules decide who’s eligible, and service objectives decide who’s the best fit. During scheduling and optimization, the engine applies these criteria against factors like resource skills, travel time, and urgency to make sure the right person is assigned to the right job efficiently.").

#### See Also

- [Create and Manage Work Rules in Workforce Scheduling](https://help.salesforce.com/s/articleView?id=service.wfs_work_rules_manage.htm&release=264.0.0&type=5 "Work rules filter candidates for a service appointment by rejecting service resources that violate any rule. Every scheduling policy uses work rules to filter candidates before service objectives grade them.")