Newer Version Available
GradeSlotsService Class
Namespace
Usage
GradeSlotsService Constructors
The following are constructors for GradeSlotsService.
GradeSlotsService Methods
GradeSlotsService includes the following static method.
getGradedMatrix(i_ResultsInUserTimeZone)
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
Usage
If Enhanced Scheduling and Optimization (ESO) is enabled, this method runs synchronously. If ESO isn’t enabled, this method can be called with only one service appointment at a time, and runs asynchronously. To examine results that the asynchronous method returns, use the streaming API and subscribe to MstCompletedChannel, the channel for the Field Service managed package.
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.