ForceChallenges
ProblemsDailyNotesInterview
Sign in

Practice

All problemsSOQL practiceApex trigger challengesDaily challengeOpportunityTrigger.oldMapBefore UpdateBulkificationContactValidationGROUP BYSemi-JoinAccountBefore Insert

Interview questions

All questionsAdminAdministrationApexApex TriggerAsync ApexDevelopmentField ServiceField ServiceIntegrationLwc

By company

DeloitteSalesforceAccentureInfosysPwCCognizant

Learn

Study notes

ForceChallenges

AboutContact usPrivacy PolicyTerms of ServiceFor AI assistants (llms.txt)
© 2026 ForceChallenges · Salesforce SOQL & Apex trigger practice
Field Service questions72 of 108
Field ServiceMedium 1 min read

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

Asked atSalesforceAccentureSlalom

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.

Service AppointmentStatusDispatchAutomation
Practice SOQL & Apex
PreviousHow do Maintenance Plans help a company move from reactive to proactive field service, and what business benefits and KPIs result?Next How does offline data synchronization work under the hood in the Salesforce Field Service mobile app, including the upload queue and sync errors?

More Field Service questions

  • What is Service Resource Efficiency in Field Service and how does it influence scheduling?
  • Write a SOQL query to find active Service Resources that have no appointments scheduled tomorrow.
  • Write Apex that creates a Service Appointment for a Work Order with a 60-minute duration and a scheduling window.
  • Write a SOQL query that lists tomorrow's scheduled Service Appointments with the technician name for each.
  • What are Field Service Mobile Settings and how do you give different technician groups different mobile configurations?