Create Service Appointments

A service appointment represents an appointment booked through Salesforce Scheduler. To create an appointment, make a POST request on the service-appointments Connect API.

Create a page where the user can review the appointment details and create the appointment. Here’s how a Review Service Appointment page can look.

To keep the service resource private, hide the resource’s name on the review appointment page.

A representation of the Review Service Appointment screen.

Link the Next button to a POST request on the service-appointments Connect API to create the service appointment.

Resource URI

For an Existing User (Account)

Sample Request

Pass the account ID as parentRecordId in the input request body.

Set IsAnonymousBooking to true to indicate that the appointment is anonymous.

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.

Set IsAnonymousBooking to true to indicate that the appointment is anonymous.

Sample Response

The API returns the service appointment ID and the assigned service resources.

Create a page to show confirmation when the service appointment creation is completed.

Here’s how a sample confirmation page can look.

A representation of the confirmation screen.