What is the core purpose of the Service Appointment object in the SFS data model?
Answer
Basics: A Work Order says what needs doing; a Service Appointment says when and where a technician will do it. Its parent record can be a Work Order, Work Order Line Item, Account, Opportunity or Lead.
How it works: Key fields: Earliest Start Permitted, Due Date, Arrival Window Start/End (customer-facing), Scheduled Start/End, Actual Start/End, Duration, Service Territory, address and coordinates, and Status. Status categories are None, Scheduled, Dispatched, In Progress, Completed, Cannot Complete and Canceled; custom status values map to a category. The scheduler writes the schedule and creates an Assigned Resource. Dispatch makes it visible on the mobile app. The technician updates status, and actual times are recorded.
Advanced / deep dive: The appointment, not the work order, is the unit the engine optimizes. Scheduling constraints come from it (dates, skills inherited from parent, territory, visiting hours). Customer communications (arrival windows, notifications) read from it. A work order can have multiple appointments (follow-up visits). Flags like pinned and emergency affect scheduling. Missing geocodes or territory break scheduling, so they need validation at creation.
Hidden gotchas & must-remember points:
- Appointments need a Service Territory to be scheduled.
- Arrival windows are customer-facing; scheduled times are internal.
- Status categories drive logic; use them in automation, not label text.
- Due date and earliest start define the scheduling window; wrong values yield no slots.
- Creation is not automatic; use Work Types or Flow to generate appointments.
Best practice: Automate appointment creation with territory and geocoding, and key all logic on status category.