Loading
Feature degradation | Gmail Email delivery failureRead More
Agentforce Field Service and Operations
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Work Rule Type: Service Resource Availability

          Work Rule Type: Service Resource Availability

          Service Resource Availability is an Apex work rule type that ensures that a service resource is available to perform a service appointment. You can schedule breaks automatically, account for travel time, or set up short breaks between service appointments. A work rule of this type is mandatory for all scheduling policies to ensure that both resource absences and availability are respected during the scheduling process.

          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.

          Package icon This is a Field Service managed package feature.

          The work rules consider these factors.

          • The service resource’s operating hours, which are defined on their service territory member record or—if no hours are specified there—on their service territory record
          • Travel time
          • Break times
          • The scheduled start and end time of other scheduled appointments, shifts, and resource absences.

          During the scheduling of capacity-based service resources, a Service Resource Availability work rule results in a rule violation in any of these cases.

          • The number of scheduled working hours exceeds the resource’s capacity
          • The number of scheduled work items exceeds the resource’s capacity
          • A capacity record was deleted or updated after the related service resource was assigned to a service appointment

          You can apply different scheduling rules to each service resource. For example, you have different policies on breaks, overtime, or before- and after-work travel time for full-time versus part-time employees. Service Resource Availability work rules let you capture these differences.

          Service Resource Availability work rules have these settings.

          Field Name Description
          Fixed Gap

          Enforce a minimum break time between service appointments. This setting is useful for remote consultants. For example, you want to provide 20 minutes between appointments for record-keeping.

          Note
          Note If a fixed gap is defined, travel time isn’t considered during scheduling. However, travel time is still calculated and displayed on the Gantt. The Offsite Appointment setting on the service appointment record is ignored.
          Minimum Gap (minutes) The minimum number of minutes between service appointments. The Minimum Gap value applies only if Fixed Gap is selected.
          Break Start

          Set a single break time that the scheduling engine inserts between scheduled service appointments. For example, if service resources prefer to take lunch at 12:00 PM, enter 12:00. Breaks are scheduled as close as possible to the Break Start time, allowing for flexibility to start and complete appointments.

          Break Duration The length of the break.
          Overtime Allow service appointments to be scheduled during time slots or shifts of the Extended type.
          Travel From Home (minutes) The number of minutes that the resource has available for travel before the start of the work day (at the resource's expense). When using Enhanced Scheduling and Optimization, if this field is empty or zero, all travel will be scheduled within the work day. If you want travel from home to be at the resource's expense, enter a high value, for example 5 hours. When not using Enhanced Scheduling and Optimization, if this field is empty, any amount of travel before the start of the work day is valid.
          Travel To Home (minutes) The number of minutes that the resource has available for travel after the end of the work day (at the resource's expense). When using Enhanced Scheduling and Optimization, if this field is empty or zero, all travel will be scheduled within the work day. If you want travel to home to be at the resource's expense, enter a high value, for example 5 hours. When not using Enhanced Scheduling and Optimization, if this field is empty, any amount of travel after the end of the work day is valid.
          Note
          Note To create a Service Resource Availability work rule that creates breaks and calculates travel time, enable the Calculate travel and breaks setting in Field Service Settings.

          Travel

          Complete the travel fields according to where service resources are expected to be at the beginning and end of their periods of availability.

          • On-site: If a service resource is expected to begin work on-site at the beginning of their availability, for example, if they start work at 9:00 AM, then travel must occur before that time. In this case, fill out the Travel To and From Home fields and include the duration of expected travel time outside the service resource’s working hours..
          • Start driving: If a service resource is expected to start traveling at the beginning of their availability, set the Travel To and From Home fields to zero.

          Break Schedules

          There are two ways to add breaks to Service Resource Availability work rules.

          • To set a single break, fill out the Break Schedule fields.
          • To create up to three breaks that start relative to the beginning of the day, add work rule entries. Enhanced Scheduling and Optimization must be enabled.

          If you don’t want to use breaks, leave these sections empty. You can’t set both a single break and add work rule entries.

          When you use the Break Schedule settings, these conditions apply.

          • A service resource's lunch break is created at the time defined in the Service Resource Availability work rule when the first service appointment is scheduled in the day. When you drag an appointment or schedule a new one, the Service Resource Availability work rule ensures that the service resource takes a break either at the set Break Start time or immediately after the last appointment that started before the Break Start. The scheduling engine allows for some flexibility.

          • When a service appointment starts before the Break Start time and ends after, then the break is pushed forward to the end of the service appointment. For example, with Break Start set to 12:00 PM, the scheduling engine can schedule a service appointment from 11:30 AM to 12:30 PM, and move the break to 12:30 PM, so that the service resource’s break starts as soon as the resource has completed that appointment. The lunch break can be moved forward as long as there's availability.

          • If the travel time to the next appointment prevents the break from being scheduled at the set Break Start time, the break is pushed back until the end of the first service appointment scheduled on that day. For example, if the Break Start is set to 12:00 PM and lasts 30 minutes, and a service appointment is scheduled at 12:30 PM to 13:30 PM, but includes a 30-minutes travel time to the appointment, then the break is pushed back and scheduled from 11:30 AM to 12:00 PM.

          • If there are multiple service appointments after the Break Start and there’s no room for the break, or if an appointment is extended so that the break after it overlaps with the next appointment’s travel time, the break defaults to the Break Start time set in the availability rule. This overlap results in a rule violation. For example, if a Break Start is set to 12:00 PM and a service appointment is scheduled from 11:00 AM to 12:00 PM, and then you drag another service appointment to 12:00 PM until 1:00 PM, the break doesn’t move to 1:00 PM. A resource availability rule violation is displayed. Also, if you drag an appointment to after the break but its travel time overlaps with the break, the scheduling engine doesn’t move the break, and a rule violation is displayed.

          Note
          Note We recommend that you avoid creating manual breaks so that only the scheduling engine creates and modifies breaks.

          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.

           
          Loading
          Salesforce Help | Article