# Explain how the Salesforce Field Service scheduling engine works internally, from work rule filtering to service objective scoring and booking.

**Topic:** Field Service · **Difficulty:** Hard · **Asked at:** Salesforce, Slalom, PwC · **Tags:** Scheduling Engine, Work Rules, Service Objectives, Architecture

Read it on the site: https://www.forcechallenges.com/interview-questions/explain-how-the-salesforce-field-service-managed-package-scheduling-engine-operates-under-the-hood

## Answer

The scheduling engine works in stages. Hard constraints decide who is *allowed*, and soft goals decide who is *best*.

**1. Candidate selection (work rules)**
For a Service Appointment, the engine evaluates each resource against the **Work Rules** in the Scheduling Policy: Match Skills, Service Resource Availability, Working Territories, Required/Excluded Resources, Max Travel From Home and so on. Any violation removes the candidate.

**2. Time and travel**
For the remaining candidates it finds possible time windows inside Earliest Start Permitted and Due Date. It uses operating hours, absences, existing appointments and **travel time** between neighbouring jobs (from geocoded addresses).

**3. Scoring (service objectives)**
Each option gets a score from every **Service Objective** (ASAP, Minimize Travel, Preferred Resource and others). Scores are multiplied by the objective weights and added together.

**4. Booking**
The best-scoring option is written to the record: Scheduled Start/End, an **Assigned Resource**, and the status changes.

**Optimization** (Global, In-Day) applies the same rules and goals, but to many appointments at once, repeatedly improving the whole schedule.

Interview tip: say clearly that **work rules = filters, objectives = ranking**.

---
Source: ForceChallenges · last updated 2026-10-31
