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.
ScheduleResult Class
Namespace
Example
This example shows the contents of a returned ScheduledResult object.
1[
2 BreakObject=null,
3 Grade=100.000000000000000000000000000000,
4 LongOperationId=null,
5 PartialResults=(),
6 Resource=ServiceResource:
7 {Id=0Hn4E0000004bucSAA, Name=Crew A, IsActive=true, IsCapacityBased=false, ResourceType=C, ServiceCrewId=1cr4E0000004CM7QAM, Contractor_Priority__c=2},
8 Service=ServiceAppointment:
9 {Id=08p4E000000LeMiQAK, Status=None, FSL__Same_Day__c=false, FSL__Same_Resource__c=false, AppointmentNumber=SA-6214, DueDate=2018-09-20 17:07:00, EarliestStartTime=2018-09-17 17:07:00, Duration=1.5, DurationType=Hours, Latitude=37.793872000000000, Longitude=-122.394865000000000, FSL__InternalSLRGeolocation__Latitude__s=37.793834, FSL__InternalSLRGeolocation__Longitude__s=-122.395123, ServiceTerritoryId=0Hh4E0000000OtPSAU, FSL__Schedule_over_lower_priority_appointment__c=false, FSL__Use_Async_Logic__c=false, FSL__IsMultiDay__c=false, ParentRecordId=0WO4E000000Vl6rWAC, FSL__Emergency__c=false, SchedStartTime=2018-09-17 17:13:00, SchedEndTime=2018-09-17 18:43:00, FSL__Schedule_Mode__c=Automatic, FSL__Scheduling_Policy_Used__c=a0N4E0000031HPVUA2}
10 ]ScheduleResult Properties
ScheduleResult contains the following properties.
longOperationId
Signature
public Id longOperationId {get; set;}
Property Value
Type: Id
Usage
To learn more about scheduling dependencies and complex work, see Create Scheduling Dependencies Between Service Appointments.
To learn about Enhanced Scheduling and Optimization, see Get Ready for Scheduling and Optimization.
partialResults
Signature
public List<FSL.PartialResultsInfo> partialResults {get; set;}
Property Value
Type: List<FSL.PartialResultsInfo>