Get Service Appointments

A service appointment represents an appointment booked through Salesforce Scheduler. Use the query request on the ServiceAppointment object to retrieve a list of service appointments.

Create a page where you can show the service appointments for a logged in user.

Sample Request

This sample REST API call uses the query resource to retrieve service appointments.

For more information, see Execute a SOQL Query.

Sample Response

The method returns the available service appointments.

Parse the JSON response, and display the service appointments on a page in your app so that users can select an appointment record to modify.

Here’s how that page can look.

A representation of the Select Service Appointment screen.

On the next page, you can provide users an option to select a service appointment to modify.