How do Resource Absences (vacation, training, breaks) affect technician scheduling in Salesforce Field Service?
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.
Resource AbsenceAvailabilityApexScheduling