Skip to content
Salesforce Dictionary - Free Salesforce GlossarySalesforce Dictionary
DictionarySService Optimization
ServiceIntermediate

Service Optimization

Service Optimization is the Salesforce Field Service capability that solves the dispatch problem: given a set of work appointments and a set of mobile workers with skills, locations, and schedules, assign each appointment to the best-fit worker and time slot so the field service operation meets its KPIs.

§ 01

Definition

Service Optimization is the Salesforce Field Service capability that solves the dispatch problem: given a set of work appointments and a set of mobile workers with skills, locations, and schedules, assign each appointment to the best-fit worker and time slot so the field service operation meets its KPIs. The engine considers travel time, skill match, working hours, customer windows, service level agreements, and cost preferences in a single optimization pass and returns a schedule that minimizes the configured objective.

Service Optimization is delivered as an add-on engine within Salesforce Field Service (the product that used to be called Field Service Lightning). The engine runs on demand or on a schedule, taking the current open appointments and worker schedules as input and writing a proposed schedule back to the platform. Dispatchers review the proposal, adjust as needed, and release. The optimizer is the difference between a 30-tech operation that can plan one day at a time and a 300-tech operation that needs to plan a full week with thousands of constraints in seconds.

§ 02

How Service Optimization turns a chaotic field service schedule into a workable plan

The optimization problem

Field service scheduling is a constrained optimization problem at industrial scale. The inputs are appointments (each with a duration, a required skill set, a customer window, and a service-level deadline), workers (each with skills, a service territory, a schedule, and a starting location), travel time between sites (computed from a routing engine), and business rules (priority, customer tier, overtime cost). The output is an assignment of each appointment to one worker at one start time. Service Optimization solves this with a mix of heuristics and mathematical programming, returning a feasible schedule that meets the configured objective in seconds to minutes.

Optimization horizons

Salesforce supports several optimization horizons. Same-Day Schedule adjusts the day's open appointments around real-time disruptions. Resource Schedule Optimization plans the next 1-7 days for a service territory. In-Day Optimization rebalances appointments mid-day after a tech runs late. Each horizon has different cost-of-disruption tradeoffs: same-day optimization respects committed customer windows tightly, while a week-out plan can absorb more flexibility because customer windows have not been promised yet.

Objectives the engine can minimize

The optimizer takes a configured objective. Common objectives are: minimize total travel time (reduce drive miles), maximize appointment count (fit more jobs into the day), minimize overtime (stay within scheduled hours), maximize customer SLA compliance (hit promised windows first), and minimize cost (weighted combination of travel, overtime, and SLA penalty). Most enterprises pick a hybrid objective with SLA compliance as the hard constraint and travel-plus-overtime as the soft cost. The engine's strength is solving the multi-objective tradeoff better than a human dispatcher could in real time.

Skills, certifications, and matching

The optimizer respects worker skills. A technician with HVAC certification can be assigned an HVAC appointment; a technician without the cert cannot, even if they are geographically closest and immediately available. Skill requirements are configured as Required Skills on the Work Type or Service Appointment object. The engine reads them and excludes any worker who does not match. Customers sometimes underestimate the value of a complete skill matrix; without one, the optimizer produces unsafe assignments and the field team distrusts the schedule.

Travel time and the routing engine

Service Optimization uses a built-in routing engine to estimate travel time between appointment locations. The routing engine considers road network distance, traffic patterns, and worker starting location (home or the depot). Customers can plug in Google Maps Distance Matrix or Salesforce Maps as the routing source. Travel time is the single biggest non-appointment cost in most field operations; the difference between a route that minimizes travel and one that ignores it can be 20-40 percent of the operating budget.

Dispatch Console and human-in-the-loop review

The Dispatch Console is the dispatcher's workspace. Optimized schedules land in the console as proposed assignments; the dispatcher reviews, manually overrides if needed, and releases the schedule to workers. The console shows a gantt chart of every worker's day, with drag-and-drop adjustments that re-optimize on the fly. The human-in-the-loop pattern is essential because real-world disruptions (a customer cancels, a worker calls in sick) require judgment the optimizer alone cannot exercise.

When the optimizer is the wrong tool

Service Optimization is overkill for very small operations (under 20 workers, under 100 appointments per day). At that scale, a manual dispatcher with a clean gantt chart is faster than configuring and tuning the optimizer. The engine becomes essential above 50 workers or 500 appointments per day, where the combinatorial space is too large for humans to optimize manually. Customers who try to use Service Optimization on a small operation often turn it off after a quarter because the configuration cost exceeded the operational benefit.

§ 03

Run a Service Optimization pass for tomorrow's schedule

Trigger an optimization run that takes tomorrow's open appointments and your active workers, returns an optimized schedule, and posts it to the Dispatch Console for review.

  1. Open the Dispatch Console

    From the App Launcher, open Field Service. The Dispatch Console shows the gantt chart of every worker and every open appointment.

  2. Select the service territory

    Pick the service territory or group of territories to optimize. Filter to the date range (tomorrow).

  3. Trigger Resource Schedule Optimization

    Click Run Optimization. Salesforce takes the snapshot of appointments and workers and submits to the optimizer engine.

  4. Wait for completion

    The run typically takes 1 to 5 minutes for a 50-tech territory. A spinner shows progress. The Dispatch Console updates when the proposed schedule is ready.

  5. Review the proposed schedule

    Walk through the gantt chart. Check that each appointment has a worker, a start time, and a sensible travel sequence. Flag any anomalies.

  6. Release to workers

    Click Release Schedule. The appointments are committed to workers, customers receive confirmations, and the day's plan is locked in.

Optimization Horizonremember

Same-Day, In-Day, Resource Schedule (1-7 day), or Multi-Day. Each has different cost-of-change tolerance.

Objectiveremember

Minimize travel, maximize appointments, minimize overtime, maximize SLA compliance, or a weighted combination.

Routing Engineremember

Built-in Salesforce, Google Maps Distance Matrix, or Salesforce Maps.

Skill Matchremember

Required Skills on Work Type or Service Appointment that the optimizer respects when assigning workers.

Gotchas
  • Service Optimization needs accurate skills, schedules, and locations. Garbage in, garbage out; the optimizer is only as good as the data it reads from the platform.
  • Same-Day optimization can flip appointments in flight. Configure the cost-of-change weight high enough that the optimizer does not constantly reshuffle already-confirmed work.
  • Routing engine costs scale with API calls. Google Maps Distance Matrix charges per pair of points queried; a large optimization can run up cost if not configured.
  • Optimization runs are not free for very large territories. A 500-tech territory may take 10 minutes or more; schedule overnight runs for the next-day plan and same-day reruns for disruption recovery.
§

Trust & references

Sources

Cross-checked against the following references.

Official documentation

Straight from the source - Salesforce's reference material on Service Optimization.

Keep learning

Hands-on resources to go deeper on Service Optimization.

Was this entry helpful?
Help us write better definitions. Quick reactions or detailed edit suggestions.

About the Author

Dipojjal Chakrabarti is a B2C Solution Architect with 29 Salesforce certifications and over 13 years in the Salesforce ecosystem. He runs salesforcedictionary.com to help admins, developers, architects, and cert/interview candidates sharpen their fundamentals. More about Dipojjal.

§

Test your knowledge

Q1. What is Service Optimization?

Q2. What does it consider?

Q3. Why is it needed?

§

Discussion

Loading…

Loading discussion…