Use this skill to configure Field Service Lightning service resources — including ServiceResource types, skill assignments via ServiceResourceSkill, capacity-based resource setup, and ResourcePreference rules. NOT for service territory setup (see fsl-service-territory-setup), NOT for scheduling policy configuration, and NOT for FSL mobile app setup.
This skill activates when a practitioner needs to configure Field Service Lightning service resources — covering ServiceResource object setup, skill and certification assignment, capacity-based resource types, and customer resource preferences. It addresses the full resource data model that the FSL scheduling engine queries when searching for appointment candidates.
Gather this context before working on anything in this domain:
ServiceResource represents any person, crew, vehicle, or tool participating in field service operations. The ResourceType field determines how the record behaves in the scheduling engine:
| ResourceType | Description | Linked to User? |
|---|---|---|
| Technician | An individual field worker. Can be linked to a Salesforce User record via the RelatedRecordId field. | Optional — can exist without a User |
| Crew | A group of technicians acting as a single schedulable unit. Members are added via ServiceCrewMember. | No User link |
Non-human assets (vehicles, tools, specialized equipment) are typically created as Technician-type resources without a User link. The scheduling engine treats them identically to human technicians when assigning appointments — set skills and capacity accordingly.
Key fields on ServiceResource:
Name — display label used in the Dispatcher Console and scheduling resultsResourceType — Technician or Crew; cannot be changed after record creationRelatedRecordId — polymorphic lookup to a User record (for Technician type only)IsActive — inactive resources are excluded from all scheduling searchesIsCapacityBased — when true, availability is governed by ServiceResourceCapacity records rather than shift blocksServiceResourceSkill is the junction object that assigns a Skill to a ServiceResource. The scheduling engine uses these assignments to match resources to work type requirements on service appointments.
Key fields:
ServiceResourceId — the resource receiving the skillSkillId — the Skill record being assignedSkillLevel — decimal value from 0 to 99.99 representing proficiency; work type requirements specify a minimum levelStartDate — (optional) date from which the skill is active; leave blank for immediate activationEndDate — (optional) certification expiry date; any record with an EndDate in the past is silently excluded from scheduling without any warning or errorA resource with a skill whose EndDate is expired appears in the system as if it has no skill at all. This is the leading cause of unexplained candidate drop-outs in production FSL orgs. Routine certification audits should query ServiceResourceSkill WHERE EndDate < TODAY and either renew or deactivate those records.
When IsCapacityBased = true on a ServiceResource, the scheduling engine does not evaluate that resource against shift blocks or time slot availability. Instead, it checks ServiceResourceCapacity records to determine whether the resource has remaining capacity for the period.
ServiceResourceCapacity fields:
ServiceResourceId — the capacity-based resourceStartDate / EndDate — the period these capacity limits coverTimeSlotType — Normal (regular hours) or Extended (after-hours)Capacity — maximum units available in the periodCapacityUnit — Hours or Appointments; defines what the Capacity number measuresCapacity resources are used for shared assets (e.g., a pool of specialized diagnostic tools that can be booked up to 8 hours/day) and contractors billed by appointment count rather than shift. A capacity resource with no active ServiceResourceCapacity record cannot be scheduled.
ResourcePreference expresses a customer's relationship to a specific resource. The scheduling engine uses preferences to rank or restrict candidates during appointment assignment.
The PreferenceType field accepts three values:
Preferred — the resource is favored but not required; other candidates are still validRequired — only this resource can be assigned to appointments for this account; the scheduler will not assign anyone elseExcluded — this resource must never be assigned to appointments for this accountKey fields:
RelatedRecordId — the Account (or other object) expressing the preferenceServiceResourceId — the resource being preferred/required/excludedPreferenceType — Preferred, Required, or ExcludedA Required preference combined with an expired skill on that resource creates a scheduling deadlock: the scheduler looks only for the required resource but that resource's skill is expired, so no candidates are returned.
When to use: Onboarding a new field technician or adding a certified skill (e.g., electrical certification with expiry) to an existing resource.
How it works:
ServiceResource record with ResourceType = Technician. Link RelatedRecordId to the technician's User record if they need mobile app access.IsActive = true. Confirm IsCapacityBased = false for time-slot-based availability.Skill records in the org. Query SELECT Id, MasterLabel FROM Skill to avoid creating duplicates.ServiceResourceSkill record for each skill, setting:
SkillLevel to the technician's proficiency (e.g., 75 for journeyman, 99 for master)StartDate to today if the certification begins nowEndDate to the certification expiry date if one appliesServiceTerritoryMember (covered in fsl-service-territory-setup).Why not the alternative: Creating skills at the Skill object level without ServiceResourceSkill junction records has no effect on scheduling. The skill must be explicitly linked to the resource.
When to use: A piece of equipment (e.g., a calibration rig, a specialized truck) can be booked for a fixed number of hours or appointments per day and is shared across multiple service appointments.
How it works:
ServiceResource with ResourceType = Technician (equipment uses this type), a descriptive Name, no RelatedRecordId, and IsCapacityBased = true.IsActive = true.ServiceResourceCapacity records for each period the equipment is available:
StartDate and EndDate defining the period (e.g., current month)Capacity set to the maximum units (e.g., 8 for 8 hours/day)CapacityUnit set to Hours or AppointmentsServiceTerritoryMember.Equipment-CalibrationRig) via ServiceResourceSkill so work types requiring that equipment find this resource during scheduling.Why not the alternative: Using a standard time-slot-available resource for shared equipment means the scheduler treats it as if it has one dedicated shift, which does not correctly model shared or partial-day bookings across multiple appointments.
When to use: A customer account has a contractual or relationship requirement that a specific technician always handles their work orders.
How it works:
ResourcePreference record:
RelatedRecordId = the Account IdServiceResourceId = the technician's ServiceResource IdPreferenceType = RequiredPreferred.Why not the alternative: Relying on dispatcher memory or case notes to enforce customer-resource assignments is not scalable and breaks when dispatchers change. The ResourcePreference object encodes this rule in the data model so the scheduler enforces it automatically.
| Situation | Recommended Approach | Reason |
|---|---|---|
| Individual field worker needing mobile access | Technician-type ServiceResource linked to their User via RelatedRecordId | User link enables FSL mobile app authentication and push notifications |
| Non-human asset (vehicle, tool) | Technician-type ServiceResource with no RelatedRecordId, IsCapacityBased as needed | Vehicles and tools model identically to technicians; ResourceType Crew is for groups |
| Group of workers dispatched as one unit | Crew-type ServiceResource with members added via ServiceCrewMember | Crew dispatches the entire group as one scheduling candidate |
| Resource available fixed hours/appointments per period | IsCapacityBased = true with ServiceResourceCapacity records | Capacity model prevents overbooking shared assets |
| Certification that expires on a known date | ServiceResourceSkill with EndDate set to expiry | Scheduler silently drops the resource when EndDate passes; EndDate is the correct enforcement mechanism |
| Customer always served by specific technician | ResourcePreference with PreferenceType = Required | Encodes the constraint in the data model; scheduler enforces automatically |
| Customer should avoid a specific technician | ResourcePreference with PreferenceType = Excluded | Scheduler will not surface excluded resources as candidates for that account |
| Technicians not appearing as candidates | Query ServiceResourceSkill WHERE EndDate < TODAY for this resource | Expired skill records are the most common silent cause of missing candidates |
Step-by-step instructions for an AI agent or practitioner working on this task:
Verify prerequisites — Confirm Field Service is enabled (Setup > Field Service Settings). Verify that ServiceResource, Skill, ServiceResourceSkill, and ResourcePreference are accessible. Run SELECT Id, MasterLabel FROM Skill to obtain the existing skill catalog before creating any new skills.
Create or update ServiceResource records — For each technician, crew, or asset, create a ServiceResource with the correct ResourceType. Set RelatedRecordId for any technician who needs mobile app access. Set IsCapacityBased = true only for resources governed by capacity rather than shift blocks. Set IsActive = true.
Assign skills — Create ServiceResourceSkill records for each resource-skill pairing. Set SkillLevel to the resource's proficiency. Set EndDate for any certification with an expiry. Avoid duplicate skill assignments on the same resource — query first.
Configure capacity records if needed — For capacity-based resources, create ServiceResourceCapacity records covering the scheduling horizon. Set Capacity and CapacityUnit to match business rules. Gaps in the date coverage silently prevent scheduling.
Configure ResourcePreference records — For accounts with preferred, required, or excluded resource assignments, create ResourcePreference records with the appropriate PreferenceType. Cross-check that Required resources have all necessary active skills.
Assign resources to territories — Each resource must have at least one ServiceTerritoryMember record before it will appear in scheduling searches. See fsl-service-territory-setup for member type rules.
Validate and test — Query SELECT Id, ServiceResourceId, EndDate FROM ServiceResourceSkill WHERE EndDate < TODAY to surface any expired records. Create a test service appointment and confirm expected candidates appear in the Dispatcher Console. Verify the 20-candidate limit is not masking under-qualified resources in large territories.
Run through these before marking work in this area complete:
IsActive = true unless intentionally deactivatedTechnician for individual workers and assets; Crew only for group unitsServiceResourceCapacity record covering the current periodServiceResourceSkill records have EndDate in the past (query: WHERE EndDate < TODAY)ServiceResourceSkill records exist for the same resource and skill combinationResourcePreference records are paired with resources that hold all required active skillsServiceTerritoryMember record in an active territoryNon-obvious platform behaviors that cause real production problems:
Expired ServiceResourceSkill records silently block scheduling — When a ServiceResourceSkill record has an EndDate in the past, the scheduler treats the resource as if it has no skill at all. No error message is shown in the Dispatcher Console or optimization log. The resource simply does not appear as a candidate. This is the most common unexplained candidate drop-out in production FSL orgs.
Capacity resources with date gaps are unschedulable without warning — A capacity-based resource with no active ServiceResourceCapacity record for the current period cannot be scheduled. The scheduler does not flag this as a configuration error; it simply returns no capacity and excludes the resource. Capacity records must be created proactively to cover future scheduling windows.
Required ResourcePreference + missing skill = zero candidates, no error — When a ResourcePreference with PreferenceType = Required points to a resource that lacks the required skill (or whose skill is expired), the scheduler returns zero candidates for that appointment. The error surfaces as "no available resources" rather than as a preference or skill configuration problem.
| Artifact | Description |
|---|---|
| ServiceResource records | Configured technicians, crews, and assets with correct ResourceType and IsCapacityBased flag |
| ServiceResourceSkill records | Skill-to-resource junction records with SkillLevel and optional certification dates |
| ServiceResourceCapacity records | Period-based capacity definitions for capacity-based resources |
| ResourcePreference records | Customer-resource preference, required, or exclusion rules |
| Validation checklist | Completed review checklist confirming no expired skills, no capacity gaps, and limits compliance |
fsl-service-territory-setup — ServiceTerritory and ServiceTerritoryMember configuration; resources must be assigned to territories before they appear in schedulingfsl-scheduling-policies — Work rules and scheduling policies that consume resource skill and preference data during optimizationfsl-work-type-setup — Work type and required skill configuration; skill level minimums on work types must match resource SkillLevel values