# What is the difference between Global Optimization and In-Day Optimization in Salesforce Field Service?

**Topic:** Field Service · **Difficulty:** Medium · **Tags:** Field Service, Optimization, Scheduling

Read it on the site: https://www.forcechallenges.com/interview-questions/what-is-the-difference-between-global-optimization-and-in-day-optimization-in-salesforce-field-service

## Answer

**Basics:** Salesforce Field Service Optimization (a separate license add-on, Field Service Scheduling and Optimization) automatically improves schedules after the initial booking. Different modes serve different time horizons.

**How it works:** Global Optimization takes a set of territories, a horizon (for example the next 7 days) and a scheduling policy, then reassigns and reorders appointments to cut travel, respect rules and meet objectives. It is usually scheduled to run nightly. In-Day Optimization works on today's remaining appointments, triggered on a schedule during the day or when something changes (cancellation, emergency, late technician). Appointments that are Dispatched, In Progress or Pinned are normally left alone. Results appear as Optimization Requests with status and unscheduled lists. A related mode is Resource Schedule Optimization, which optimizes one technician's day.

**Advanced / deep dive:** Global Optimization tolerates big movements because customers are not yet being driven to; In-Day must avoid disrupting committed work, so it moves less and runs often. Optimization uses the same Scheduling Policy as booking, so rules and weights shape results. Optimization runs on Salesforce-hosted engine infrastructure and is asynchronous; it can be started from the Gantt, from a scheduled job or via the Optimization API for custom triggers. Enhanced optimization variants exist in newer releases; verify current naming in release notes. Territory design affects performance: very large territories with thousands of appointments increase run time and may leave more appointments unscheduled.

**Hidden gotchas & must-remember points:**
- Optimization needs its own permission set license; not included in base Field Service.
- Pinned, dispatched or in-progress appointments are not moved; the "Pinned" flag is a quick way to protect critical work.
- Running Global Optimization during working hours can reshuffle already communicated appointment windows, breaking customer promises.
- Unscheduled appointments appear in the Optimization Request insights; reviewing them is how you find too-tight rules.
- In-Day runs only on the current day; do not expect it to fix next week.

**Best practice:** Run Global Optimization nightly with a lenient policy and In-Day Optimization on a short interval with a policy that avoids moving customer-committed windows.

---
Source: ForceChallenges · last updated 2026-11-02
