# How do Resource Absences (vacation, training, breaks) affect technician scheduling in Salesforce Field Service?

**Topic:** Field Service · **Difficulty:** Easy · **Asked at:** Salesforce, Slalom, IBM · **Tags:** Resource Absence, Availability, Apex, Scheduling

Read it on the site: https://www.forcechallenges.com/interview-questions/how-do-resource-absences-impact-technician-scheduling-in-sfs

## Answer

A **Resource Absence** records time when a technician is not available to work, so the schedule stays realistic.

**Fields and types**
- Resource, **Start** and **End**, and a **Type** such as Vacation, Medical, Training, Meeting or Break.
- It is shown on the Gantt chart as a blocked period.

**Effect on scheduling**
- The **Service Resource Availability** work rule excludes the technician during the absence.
- Appointments already scheduled in that time are flagged **In Jeopardy**, so dispatchers can move them.
- Breaks can be used to protect lunch periods.

```apex
ResourceAbsence ra = new ResourceAbsence(
    ResourceId = resourceId,
    Type = 'Vacation',
    Start = DateTime.newInstance(2026, 11, 5, 0, 0, 0),
    End = DateTime.newInstance(2026, 11, 7, 23, 59, 0)
);
insert ra;
```

**Tips:** create absences ahead of time (from HR data or a Flow), and use recurring patterns for regular meetings.

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