Newer Version Available

This content describes an older version of this product. View Latest

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.

Namespace

LxScheduler

Usage

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.

ServiceResourceScheduleHandler Methods

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.

Signature

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

Parameters

var1
Type: lxscheduler.ServiceAppointmentRequestInfo
Represents the list of parameters that are passed to the ServiceResourceScheduleHandler interface.

Return Value

Type: List<lxscheduler.ServiceResourceSchedule>

ServiceResourceScheduleHandler Example Implementation

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