# What is the difference between Get Slots and Get Candidates in Salesforce Field Service?

**Topic:** Field Service · **Difficulty:** Medium · **Tags:** Get Slots, Get Candidates, Appointment Booking

Read it on the site: https://www.forcechallenges.com/interview-questions/what-is-the-difference-between-get-slots-and-get-candidates-in-salesforce-field-service

## Answer

Both use the Scheduling Policy, but they answer different questions.

**Get Candidates**
- Returns a ranked list of **resources** who could do a given appointment, with their grade and the reasons others were rejected.
- Used by dispatchers and agents to pick a technician.

**Get Slots**
- Returns available **time slots** for the appointment, based on territory, operating hours, skills and capacity.
- Used for customer-facing booking, such as call-center booking or a self-service portal.
- Available from Apex through `FSL.AppointmentBookingService.GetSlots`.

Simple rule: candidates = who, slots = when.

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