ServiceResourceScheduleHandler Interface

Allows an implementing class to check external calendar events to find already booked time slots for the requested service resources. This interface is part of Salesforce Scheduler.

LxScheduler

The lxscheduler.ServiceResourceScheduleHandler interface is called by Salesforce Scheduler APIs.

To implement this interface, you must first declare a class with the implements keyword as follows:

Next, your class must provide an implementation for the following method:

The implemented method must be declared as global or public.

The following are methods for ServiceResourceScheduleHandler.

  • getUnavailableTimeslots(var1)

    Passes the required information to get unavailable time slots from an external system. The implementation of this method returns the lxscheduler.ServiceResourceSchedule class.

Passes the required information to get unavailable time slots from an external system. The implementation of this method returns the lxscheduler.ServiceResourceSchedule class.

public List<lxscheduler.ServiceResourceSchedule> getUnavailableTimeslots(lxscheduler.ServiceAppointmentRequestInfo var1)

  • var1:

    Type: lxscheduler.ServiceAppointmentRequestInfo

    Represents the list of parameters that are passed to the ServiceResourceScheduleHandler interface.

Type: List<lxscheduler.ServiceResourceSchedule>

This is an example implementation of the lxscheduler.ServiceResourceScheduleHandler interface.

This example shows how to set a sample test mock using the lxscheduler.ServiceResourceScheduleHandler interface.