# What is the significance of the Service Resource record in field operations?

**Topic:** Field Service · **Difficulty:** Medium · **Tags:** Field Service, Service Resource, Resource Management

Read it on the site: https://www.forcechallenges.com/interview-questions/what-is-the-significance-of-the-service-resource-record-in-field-operations

## Answer

**Basics:** Salesforce Field Service (formerly Field Service Lightning) separates the login (User) from the schedulable worker (`ServiceResource`). A Service Resource links to a User through `RelatedRecordId`, has a type (Technician, Dispatcher, Crew, and an Agent type for non-field staff), and an `IsActive` flag. Without an active Service Resource a person cannot be assigned work, even if they have a Field Service license.

**How it works:** Setup path: assign the Field Service permission set licenses and permission sets (Resource, Dispatcher, Mobile) to the user, then create the Service Resource in the Service Resources tab and relate it to the User. Then add child records: `ServiceTerritoryMember` (which territory they work in, with Primary, Secondary or Relocation type, date range and optional home address), `ServiceResourceSkill` (skills with levels and dates), `ResourceAbsence` (vacation, breaks), and optionally `ServiceResourceCapacity` for capacity-based resources. When an appointment is scheduled, an `AssignedResource` record joins the `ServiceAppointment` to the Service Resource.

**Advanced / deep dive:** Territory membership, not the resource itself, drives where and when a resource can be scheduled, and the operating hours come from the territory or the member record. Crews are a Service Resource of type Crew with `ServiceCrewMember` children, letting one appointment consume several people with combined skills. Capacity-based resources (contractors) are scheduled by hours or appointment count per period instead of a time slot. The scheduling engine (including Enhanced Scheduling and Optimization) evaluates skills, availability, territory, travel and work rules per resource, so poor resource data produces poor schedules. Each User can be tied to one active Service Resource, and deactivating a User does not automatically clean up resource assignments. For reporting, utilisation, travel time and first-time-fix rate all roll up from resource-level records. Contractor or partner staff can be modelled with Experience Cloud users and resources too.

**Code / config example:**
```soql
-- Active technicians in a territory with a specific skill, as of today
SELECT Id, Name, RelatedRecordId
FROM ServiceResource
WHERE IsActive = true
  AND ResourceType = 'T'
  AND Id IN (SELECT ServiceResourceId FROM ServiceTerritoryMember
             WHERE ServiceTerritoryId = :territoryId
               AND EffectiveStartDate <= :System.now()
               AND (EffectiveEndDate = null OR EffectiveEndDate >= :System.now()))
  AND Id IN (SELECT ServiceResourceId FROM ServiceResourceSkill
             WHERE Skill.DeveloperName = 'Electrical')
```

**Hidden gotchas & must-remember points:**
- A User with the license but no Service Resource record cannot be scheduled.
- Primary territory membership is required for normal scheduling; secondary is for temporary cover, relocation for temporary moves.
- Date-effective territory members and skills expire silently, so resources vanish from the Gantt when dates lapse.
- Dispatchers do not need a Service Resource unless they also receive work.
- Product was renamed from Field Service Lightning to Salesforce Field Service; API and package namespace (`FSL`) stayed.
- Missing Resource Absence records mean the optimizer will happily schedule people on leave.

**Best practice:** Treat Service Resource, territory membership and skills as governed master data, loaded and audited via data loads or a Flow, because every scheduling outcome depends on them.

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