Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

AppointmentBookingSlot Class

Represents a booking slot available for a given service appointment. An instance of this class is part of the results returned by the AppointmentBookingService and GradeSlotsService classes.

Namespace

FSL

Example

The debug log shows the relevant parts of the result: Grade and Interval. The BestSlotGrades parameters are private and inaccessible via code.

1AppointmentBookingSlot:
2[
3Grade=85.1851851851851851851851851851852,
4Interval=TimeInterval:
5[
62018-01-26 09:00:00,2018-01-26 11:00:00
7]
8]

AppointmentBookingSlot Properties

AppointmentBookingSlot contains the following properties.

grade

The grade of the available appointment booking slot.

Signature

public Decimal grade {get; set;}

Property Value

Type: Decimal

interval

The time frame of the returned appointment booking slot.

Signature

public FSL.TimeInterval interval {get; set;}

Property Value

Type: FSL.TimeInterval