How would you design a customer self-service portal where customers book and reschedule field appointments?
Answer
Architecture
- An Experience Cloud site for customers (Field Service templates are available).
- A Flow or LWC where the customer picks an appointment.
- Apex calling Get Slots (
FSL.AppointmentBookingService.GetSlots) with the right Scheduling Policy, territory and Operating Hours to return valid slots. - Create or update the Service Appointment with an arrival window, then schedule it to the chosen slot.
- Notifications through Appointment Assistant or Flow.
Reschedule and cancel
- Allow changes only within defined rules (for example 24 hours before).
- Re-run Get Slots, and free the old slot.
Security
- Customers must only see their own records, so use sharing sets or guest rules and run Apex in a controlled way.
- Protect against slot abuse and double booking with validation.
Self-ServiceExperience CloudGet SlotsDesign