# How does the Service Appointment status lifecycle (Scheduled, Dispatched, In Progress, Completed) affect scheduling and automation in Field Service?

**Topic:** Field Service · **Difficulty:** Medium · **Asked at:** Salesforce, Accenture, Slalom · **Tags:** Service Appointment, Status, Dispatch, Automation

Read it on the site: https://www.forcechallenges.com/interview-questions/how-do-service-appointment-status-lifecycles-affect-scheduling-and-automation

## Answer

The Service Appointment status shows where a visit is in its life, and both the scheduling engine and automations react to it.

**Status categories (typical flow)**
None \u2192 Scheduled \u2192 Dispatched \u2192 In Progress \u2192 Completed (or Cannot Complete / Canceled)

**Effect on scheduling**
- **None**: unscheduled, and eligible to be scheduled.
- **Scheduled**: has a resource and time, and can still be moved by optimization.
- **Dispatched**: sent to the technician's mobile app, so they can see and start it.
- **In Progress / Completed**: not moved by the engine, and time is treated as actual.
- **Canceled / Cannot Complete**: frees the slot, which can be refilled.

**Effect on automation**
- Flows and triggers use status to send notifications, create follow-up work, update the Work Order or start billing.

```soql
SELECT AppointmentNumber, SchedStartTime, Status
FROM ServiceAppointment
WHERE Status = 'Dispatched'
AND SchedStartTime < :System.now()
```
This finds dispatched appointments that should have started already.

Use **Status Categories** when you add custom statuses, so the engine still understands them.

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