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.

AppointmentInsightsResult Class

Represents the response returned by the getAppointmentInsights method. AppointmentInsightsResult includes details about why a service appointment can’t be added to the Gantt, including resource availability, blocked slots, and applicable blocking rules.

Namespace

FSL

Example

This code block represents the output of the getAppointmentInsights method from the Appointment Insights API. It provides a detailed result of an appointment insight operation. The result indicates there are no slots blocked.

1
2AppointmentInsightsResult:[
3blockedSlots=0, 
4blockingRules=(BlockingRule:[
5    ruleName=Due Date, 
6    slotsBlockedByMultipleRules=0, 
7    slotsBlockedByRule=0
8]), 
9horizonEndDate=2024-06-06 14:00:00, 
10horizonStartDate=2024-05-27 14:00:00, 
11operationTimeStamp=2024-06-16 14:00:53, 
12policyId=a0c8B00000638CMQAY, 
13resourcesEvaluated=0, 
14serviceAppointmentId=08p8B000000jCjBQAU, 
15serviceTerritoryId=0Hh8B000000HrctSAC
16]