# What is the difference between Work Rules and Service Objectives within a Scheduling Policy in Salesforce Field Service?

**Topic:** Field Service · **Difficulty:** Medium · **Tags:** Field Service, Scheduling Policy, Work Rules

Read it on the site: https://www.forcechallenges.com/interview-questions/what-is-the-difference-between-work-rules-and-service-objectives-within-a-scheduling-policy-in-salesforce

## Answer

**Basics:** A Scheduling Policy is the rulebook the Salesforce Field Service (formerly Field Service Lightning) engine uses when it books, reshuffles or optimizes appointments. Work Rules answer "can this technician do this job in this slot?". Objectives answer "of all valid choices, which is best for the business?".

**How it works:** For each appointment the engine first filters candidates by every work rule in the policy. Any candidate that violates one rule is dropped. The survivors are scored against the objectives, each multiplied by its weight, and the highest total wins. Setup path: Field Service Admin app > Scheduling Policies > create or clone a policy, then add Work Rules and Service Objectives and set the objective weights. Standard policies shipped are Customer First, High Intensity, Soft Boundaries and Emergency.

**Advanced / deep dive:** Common work rule types include Match Skills, Match Territory, Service Resource Availability, Service Appointment Visiting Hours, Excluded Resources, Required Resources, Maximum Travel From Home, Match Boolean, Match Fields and Extended Match. Common objectives include ASAP, Minimize Travel, Preferred Resource, Resource Priority, Skill Level and Minimize Overtime. Objective weights are relative, so the ratio between them matters, not the absolute number. Because work rules are binary, too many of them shrink the candidate pool and cause "no candidates" results. A frequent design is to put business-critical constraints (safety certifications, contract entitlements) in rules and preferences (nearest tech, favourite tech) in objectives. Policies are also selected per operation (Book, Fill-in, Optimization), so the same policy can behave differently depending on the engine mode.

**Code / config example:**
```text
Policy "Emergency First"
Work Rules : Match Skills, Service Resource Availability, Match Territory
Objectives : ASAP (weight 100), Minimize Travel (weight 20), Preferred Resource (weight 10)
```

**Hidden gotchas & must-remember points:**
- Work rules never trade off; a single violation excludes the candidate, objectives never exclude anyone.
- Objective weights are relative; changing only one weight changes the ratio against all others.
- A policy with an objective but no matching rule can still schedule an unqualified technician, so always include Match Skills when skills matter.
- The engine runs from a managed package (FSL namespace) and these records live in managed objects; sandbox refresh/deploy needs care.
- Customers often assume Salesforce Field Service lets rules be "soft"; there is a Soft Boundaries standard policy that relaxes territory boundaries, but it is still built from rules and objectives.

**Best practice:** Clone a standard policy rather than editing it, keep rules minimal, and test with Candidates and the Gantt "Explain" view before activating.

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