# How would you design a customer self-service portal where customers book and reschedule field appointments?

**Topic:** Field Service · **Difficulty:** Hard · **Tags:** Self-Service, Experience Cloud, Get Slots, Design

Read it on the site: https://www.forcechallenges.com/interview-questions/how-would-you-design-a-customer-self-service-portal-where-customers-book-and-reschedule-field-appointments

## Answer

**Architecture**
1. An **Experience Cloud** site for customers (Field Service templates are available).
2. A **Flow or LWC** where the customer picks an appointment.
3. **Apex calling Get Slots** (`FSL.AppointmentBookingService.GetSlots`) with the right Scheduling Policy, territory and Operating Hours to return valid slots.
4. Create or update the **Service Appointment** with an arrival window, then schedule it to the chosen slot.
5. 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.

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