While scheduling an appointment when you can’t find a specific time slot, you can look into the reason, such as the service resource is already booked or doesn’t have the required skills.
Required Editions
| Available in: Lightning Experience. |
| Available in: Enterprise and Unlimited Editions |
| User Permissions Needed | |
|---|---|
| To run Troubleshooter: | System Admin profile |
- From Setup, in the Quick Find box, enter Troubleshooter, and then select Troubleshooter under Salesforce Scheduler.
-
Select the user profile.
- To identify missing time slots within an org, click Admin.
- To identify missing time slots for an Experience Cloud user, click Experience Cloud User, and then select the Experience Cloud user.
- Click Next.
- Click Time Slot Access.
-
Enter the getAppointmentSlots REST API request body in JSON format.
You can either build an API request or retrieve the getAppointmentSlots REST API request body ( Retrieve the getAppointmentSlots API Payload for Troubleshooting).
- Select a time zone for the API response, and click Submit.
The API Response field shows the available and unavailable time slots along with the respective reasons. The time slots are for the next 2 days starting from the value specified in the startTime parameter in the API request. To view different dates, change the startTime parameter value.
Example Sample API Response
{
"territoryUnavailability": [],
"timeSlots": [
{
"enddate": "2023-12-21T22:45:00.000",
"territoryId": "0HhSB00000011Jp0AI",
"startdate": "2023-12-21T16:45:00.000"
},
{
"enddate": "2023-12-21T23:00:00.000",
"territoryId": "0HhSB00000011Jp0AI",
"startdate": "2023-12-21T17:00:00.000"
},
{
"enddate": "2023-12-21T23:15:00.000",
"territoryId": "0HhSB00000011Jp0AI",
"startdate": "2023-12-21T17:15:00.000"
},
{
"enddate": "2023-12-21T23:30:00.000",
"territoryId": "0HhSB00000011Jp0AI",
"startdate": "2023-12-21T17:30:00.000"
},
{
"enddate": "2023-12-21T23:45:00.000",
"territoryId": "0HhSB00000011Jp0AI",
"startdate": "2023-12-21T17:45:00.000"
},
],
"availability": [
{
"reason": "STM_AVAILABILITIES_SHIFT",
"resourceId": "0HnSB00000011A90AI",
"territoryId": "0HhSB00000011Jp0AI",
"startTime": "2023-12-21T16:30:00.000",
"endTime": "2023-12-22T10:15:00.000"
},
{
"reason": "STM_AVAILABILITIES_SHIFT",
"resourceId": "0HnSB00000011V70AI",
"territoryId": "0HhSB00000011Jp0AI",
"startTime": "2023-12-21T16:30:00.000",
"endTime": "2023-12-22T10:15:00.000"
}
],
"unavailability": [
{
"reason": "EXTERNAL_CALENDAR_EVENT",
"startTime": "2023-12-01T11:15:00.000",
"endTime": "2023-12-07T14:15:00.000"
},
{
"reason": "EXTERNAL_CALENDAR_EVENT",
"resourceId": "0HnSB00000011V70AI",
"startTime": "2023-12-26T11:15:00.000",
"endTime": "2023-12-28T14:15:00.000"
},
{
"reason": "EXTERNAL_CALENDAR_EVENT",
"resourceId": "0HnSB00000011A90AI",
"startTime": "2023-12-26T12:15:00.000",
"endTime": "2023-12-26T14:15:00.000"
}
]
}
- Retrieve the getAppointmentSlots API Payload for Troubleshooting
To identify the reasons for unavailable time slots while scheduling an appointment, retrieve the value in the params parameter from the getAppointmentSlots request API payload. - Reasons for Missing Time Slots
The Salesforce Scheduler Troubleshooter identifies these reasons for missing time slots.