Loading
Upcoming Mandatory Changes to Public Key Infrastructure (PKI)Read More
Salesforce Enforces New Security Requirements in Summer 2026Read 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
          Create Scheduling Recipes for Common Events

          Create Scheduling Recipes for Common Events

          Tackle common Field Service scheduling challenges with simple optimization “recipes” that address what happens to your schedule after appointment cancellations, time changes, and overlaps. Cover all scenarios by creating multiple recipes for each category.

          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.
          User Permissions Needed
          To create a scheduling recipe: Custom permission set: Field Service Admin Permissions

          Package icon This is a Field Service managed package feature.

          Scheduling recipes are an optimization feature. They use resource schedule optimization, which means that only the affected service resource’s schedule is optimized. Scheduling recipes aren’t available when using Enhanced Scheduling and Optimization, which uses the Fix Schedule Overlaps automated flow instead.

          Note
          Note Several fix overlaps features are available in Field Service.
          1. From the App Launcher, find and open the Field Service Admin app.
          2. Click the Field Service Settings tab, and then click Automated Scheduling.
          3. In the New Recipe menu, select a category. We’ve provided some example recipes to get you started. You can activate them or create your own.
          4. Customize your recipe’s settings. Then, activate and save it. Inactive recipes aren’t enforced.
            • The Status Categories field lets you limit which appointments the recipe applies to. For example, if you select only the Scheduled value on a recipe for shortened appointments, the recipe runs only if an appointment’s status is in the Scheduled status category when the appointment is shortened. Excluding the Canceled status category, the appointment’s status must also be a pinned status, which is set in Field Service Settings | Optimization | Logic.
            • The Initiating User Permission Set field lets you decide which users can trigger the recipe. For example, if you’re creating a recipe for canceled appointments, select Community to run the recipe only for appointments canceled by an Experience Builder site user (typically, a customer). The values in this field correspond to the permission sets provided by the managed package.
              Initiating User Permission Set ValueCorresponding Permission Set
              Resource Field Service Resource
              Dispatcher

              Field Service Dispatcher

              Field Service Community Dispatcher

              Call Center Rep Field Service Call Center Rep
              Admin Field Service Admin
              Community Field Service Self Service
          5. To change the priority order of recipes within a category, click Up and down arrows on the Automated Scheduling home page. Drag the recipes into the desired order and click Save.

          Considerations for Scheduling Recipes

          • You can create up to 75 active recipes per category, and up to 1000 recipes per org.
          • For Shortened Appointment scenarios, scheduling recipes only try to fill one empty space per day for each service resource.
          • For Shortened Appointment scenarios, scheduling recipes support only a single operating hours timeslot per day.
          • Scheduling recipes support only operating hours and timeslots, not shifts.
          • A triggering service appointment is the appointment that actually triggers resource scheduling optimization. For Shortened Appointments, Late-End Overlap, and Emergency Overlap scenarios, scheduling recipes are only triggered if the triggering service appointment's status has been selected as a pinned status for In-Day Optimization. The optimization engine then optimizes service appointments that are schedulable (not in a pinned status). We recommend leaving the Dispatch status deselected so dispatched work can be moved if a previous job runs late or emergency work is needed.
          • If you have access to 2,000 or more service territories, the service territories list shows only selected territories. Use the search bar to find territories that aren't selected.

          Scheduling Recipe Scenarios

          Automate how Field Service handles common situations that cause gaps or overlaps in your schedule, like the following.

          • An appointment is canceled
          • A mobile worker finishes early
          • A mobile worker finishes late and has overlapping appointments
          • An emergency causes appointments to overlap

          Certain conditions trigger a scheduling recipe, for example, appointment status categories. Recipes are triggered only for in-day of service changes to address last-minute issues to an individual service resource’s schedule.

          You can set the scheduled appointment’s Status Category to change after optimization to Scheduled or Dispatched, and mark resulting unscheduled appointments as In Jeopardy with a jeopardy reason.

          Scenario Trigger Criteria Expected Behavior (Result)
          Canceled Appointment
          • Status Category = Canceled
          • The service appointment is canceled on the day of service.
          • Service appointments must meet the set recipe criteria.
          • Preserve Current Schedule - The optimization minimizes any changes to the schedule by leaving as many scheduled appointments as is, and filling the gap with the best match from the next 100 appointments scheduled for that resource.
          • If the resource’s Last Known Location is valid (last updated within the set time limit), this location is also considered when scheduling to prevent unnecessary travel.
          Shortened Appointment
          • Status Category = Completed/Cannot Complete/Canceled
          • Service appointments must meet the set recipe criteria.
          • The service appointment’s Scheduled End is shortened and the gap created is large enough to fill. The minimum schedule space created for the recipe to apply is 10 minutes (default is 15 minutes).
          • Preserve Current Schedule and Fill Gaps - Finishing work early frees up the schedule. The optimization minimizes any changes to the schedule by leaving as many scheduled appointments as is, and filling the gap with the best match from the next 100 appointments scheduled for that resource.
          Late-End Overlap
          • The service appointment’s Scheduled End is updated to a later time. The minimum overlap for the recipe to apply is 1 minute (default is 10 minutes).
          • Service appointments must meet the set recipe criteria.
          • Preserve Current Schedule - If an appointment is taking longer than expected, the rest of the day is at risk. The optimization minimizes any changes to the schedule by leaving as many scheduled appointments as is, and scheduling an appointment from the next 100 appointments scheduled for that resource.
          Emergency Overlap
          • The service appointment’s Emergency = True, and the Status Category = Scheduled/Dispatched.
          • The minimum overlap for the recipe to apply is 1 minute (default is 10 minutes).
          • Emergency dispatches can take the resource off-route. When an emergency appointment is dispatched and results in scheduling issues, optimization reschedules the rest of the resource's day as needed in order to revolve around the emergency location and other pinned service appointments, while adhering to the scheduling policy objectives.
          • The next appointment is scheduled from the next 100 appointments scheduled for that resource.
          Example
          Example Here’s a recipe that controls what happens to the assigned resource’s schedule when a solar appointment in the San Francisco service territory ends early and results in 60 unused minutes on the schedule.
          Sample scheduling recipe
           
          Loading
          Salesforce Help | Article