Create Service Appointments
Show your users the details of a service appointment—an appointment booked through Salesforce Scheduler—so that users can review and create the appointment.
-
Create a page where the user can review the appointment details and create the appointment.
-
Make a
POSTrequest on theservice-appointmentsConnect API to create the service appointment.Specify the operating hour scheduling policy ID to show only the dummy resource who’s defined with operating hours for concurrent scheduling. See Configure Scheduling Policy to Enforce Operating Hours.
Resource URI
Where
YOUR_INSTANCEis a variable.For an Existing User (Account)
Sample Request
Pass the account ID as
parentRecordIdin the input request body.Sample Response
The API returns the service appointment ID and the assigned service resources.
For a Guest User (Lead)
Sample Request
Pass the required lead details in the input request body.
Sample Response
The API returns the service appointment ID and the assigned service resources.
Create a page to show confirmation when the service appointment is created successfully.
Here’s how a sample confirmation page can look.
