---
schema_version: "1"
id: 5f7fb9647831976715d8471f794bbf37f9681d6e3b0cc6ed86c1473ce02f9683
title: Optimize Today’s Field Service Schedule
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/pfs_in_day_optimization.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.pfs_in_day_optimization.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 5f70b35bbc41e5c063135a3c8683b6ff78c2ae1cf2a40014b899bd91d2899a00
description: Dispatchers can navigate last-minute schedule changes by rapidly optimizing their team’s schedule for one or more service territories on the day of service by manually running the optimization from the Classic Dispatch Console. You can also run in-day optimization automatically several times a day using scheduled jobs, or run jobs manually, as needed.
products:
  - Field Service
release: "264"
---
# Optimize Today’s Field Service Schedule

Dispatchers can navigate last-minute schedule changes by rapidly optimizing their team’s schedule for one or more service territories on the day of service by manually running the optimization from the Classic Dispatch Console. You can also run in-day optimization automatically several times a day using scheduled jobs, or run jobs manually, as needed.

### 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: both Salesforce Classic (not available in all orgs) and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">The Agentforce Field Service and Operations core features, managed package, and mobile app are available in <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d99152e64">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d99152e64 ">To configure scheduling policies: </td>
            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d99152e64 ">Custom permission set: FSL Admin Permissions</td>
          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d99152e64 ">To run in-day optimization: </td>
            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d99152e64 ">
              <p>One of these custom permission sets:</p>
              <ul>
                <li>FSL Admin Permissions</li>
                <li>FSL Dispatcher Permissions</li>
              </ul>
            </td>
          </tr>
        </tbody>
      </table>

![Package icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_field_service-264-0-0-production-enus/3f7dceb9-dd70-454a-b49e-bbb4526a158d/support_field_service/images/fs_package.png) _This is a Field Service managed package feature._

Schedule optimization in Field Service comes in a few different flavors. While _global optimization_ is the most powerful and thorough option, it can take several hours to complete. _In-day optimization_ is ideal for handling in-day schedule changes such as last-minute appointments that must be handled immediately or cancellations leading to gaps in the schedule. It runs for up to 5 minutes for Enhanced Scheduling and Optimization, and up to 10 minutes if you’re not using Enhanced Scheduling and Optimization, making it efficient for meeting on-demand schedule changes. You can use in-day optimization to optimize multiple days of the schedule, but it’s best suited for addressing last-minute issues by running on the current day’s appointments or at most over 2 days.

If you’re not using Enhanced Scheduling and Optimization, in-day optimization is available only if [optimization](https://help.salesforce.com/s/articleView?id=service.pfs_activate_optimizer.htm&release=264.0.0&type=5 "Configure optimization so you can schedule appointments and address last-minute challenges. You can set up optimization to run automatically, or run it manually. Activate optimization to create an optimization user and profile required for accessing a optimization services. When you’re using Enhanced Scheduling and Optimization, this activation isn't required, because Enhanced Scheduling and Optimization uses a Platform Integration User.") is turned on.

1. Create a scheduling policy from Guided Setup or by clicking New from the Scheduling Policies tab. To open Guided Setup, from the App Launcher, find and open the Field Service Admin app. Click **Field Service Settings** | **Go to Guided Setup** | **Customize Scheduling Policies**.
2. To configure a scheduling policy to use in-day optimization rather than the default global optimization, select **In-Day Optimization** on the policy. You may need to add this field to the scheduling policy page layout.
    
    ![In-Day Optimization checkbox](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_field_service-264-0-0-production-enus/3f7dceb9-dd70-454a-b49e-bbb4526a158d/support_field_service/images/pfs_in_day_checkbox.png)
3. If you selected In-Day Optimization, we recommend adding “In-Day” to the name of this policy for easy identification when creating jobs or running optimizations from the Classic Dispatch Console.
4. Save the policy.
5. Optionally, exclude service appointments with certain statuses from being changed during schedule optimization by defining criteria to pin them in place.
    
    1. From the App Launcher, find and open the **Field Service Admin** app, and then click **Field Service Settings** | **Optimization** | **Logic**.
    2. Scroll to In-Day Optimization, and from Pin Criteria, select the service appointment statuses to exclude from schedule optimization.
    3. Save your changes.
    
    The settings apply to optimizations that dispatchers run manually or in a scheduled job.
6. Optionally, define a default value to show in the Keep Scheduled Criteria field in the Scheduled Jobs tab and in the Optimize window in the Classic Dispatch Console. This field prevents service appointments with certain values from being dropped from the schedule during optimization, but it enables them to be moved to a different time slot or resource.
    
    1. From the App Launcher, find and open the **Field Service Admin** app, and then click **Field Service Settings**.
    2. Under **Optimization**, click **Logic**.
    3. Scroll to In-Day Optimization, and from Keep Scheduled Criteria, select the service appointment value to show by default.
    4. Save your changes.
    
    The settings apply to optimizations that dispatchers run manually or in a scheduled job.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_field_service-264-0-0-production-enus/3f7dceb9-dd70-454a-b49e-bbb4526a158d/images/icon_note.png)
    
    Note If a service appointment matches the criteria you define but violates a rule, it’s pinned and isn’t optimized.
7. Apply the in-day policy to scheduled jobs and define that job to run several times a day.
8. Let your dispatchers know that the optimization job can result in changes to the schedule if a more optimal schedule is created as a result of running the job. And remind them that they can select the in-day policy from the Optimize window in the Classic Dispatch Console.

#### See Also

- [Optimize Your Schedule from the Field Service Classic Dispatch Console](https://help.salesforce.com/s/articleView?id=service.pfs_optimize_dispatcher.htm&type=5&language=en_US)
- [Manage Scheduled Jobs in Field Service](https://help.salesforce.com/s/articleView?id=service.pfs_set_up_jobs_enhanced.htm&type=5&language=en_US)