Newer Version Available

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

GradeSlotsService Class

Represents the results shown in the Candidates quick action. Use the GradeSlotsService class to evaluate all possible slots where a given service appointment can be scheduled.

Namespace

FSL

GradeSlotsService Constructors

The following are constructors for GradeSlotsService.

GradeSlotsService(schedulingPolicyId, serviceAppointmentId)

Creates a new instance of the GradeSlotsService class using the specified scheduling policy ID and service appointment ID.

Signature

public GradeSlotsService(Id schedulingPolicyId, Id serviceAppointmentId)

Parameters

schedulingPolicyId
Type: Id
The record ID of the scheduling policy being used to schedule the service appointment.
serviceAppointmentId
Type: Id
The record ID of the service appointment being scheduled.

GradeSlotsService Methods

GradeSlotsService includes the following static method.

getGradedMatrix(i_ResultsInUserTimeZone)

Returns a matrix of resource IDs and graded time slots. The information is similar to that shown in the Candidates quick action.

Signature

public FSL.AdvancedGapMatrix getGradedMatrix(Boolean i_ResultsInUserTimeZone)

Parameters

i_ResultsInUserTimeZone
Type: Boolean

If true, all DateTimes are returned in the user’s time zone. If false, all DateTimes are returned in UTC.

Return Value

Type: FSL.AdvancedGapMatrix

Example

This example illustrates how to parse the results in the FSL.AdvancedGapMatrix to extract the service resource ID, start and end times, and grade of each slot.