Get Service Resources
A service resource represents an employee from your organization, such as a loan officer, investment advisor, doctor, nurse practitioner, or retail store specialist, who attends appointments with clients.
-
Create a page to show the available service resources.
-
Make a
POSTrequest on thegetAppointmentCandidatesREST API by passing the requiredworkTypeGroupIdandterritoryIdsparameters.Resource URI
Where
YOUR_INSTANCEis a variable.Sample Request
To consider an existing user’s preferred visiting hours, pass
accountIdin the input request body. The preference is enforced when the Include Only Required Service Resources and Ignore Excluded Service Resources policy rules are enabled. For more information, see Add Service Resource Preferences to Accounts for Salesforce Scheduler.Sample Response
The API returns the service resources available for the specified time slots.
-
Parse the JSON response, and show the actual service resources on a page.
Your users can select a service resource for the appointment from the page.