Loading

How Scheduled End is calculated in Multi Day Service Appointment

게시 일자: Jun 12, 2023
상세 설명

When a user updates the Scheduled Start/ Scheduled End and Duration and saves for a multiday service appointment, the Scheduled end is not correctly saved and automatically scheduled end is getting changed to some other time.
솔루션

Scheduled End: The time at which the appointment is scheduled to end. If you are using the Field Service Lightning managed package with the scheduling optimizer, this field is populated once the appointment is assigned to a resource. Scheduled End – Scheduled Start = Estimated Duration.

The Scheduled End is calculated by adding the Duration to the Scheduled Start. And, it also considers the service resources' operating hours and absences.

Operating hours for Service Resources are considered to calculate the scheduled end date.

https://help.salesforce.com/articleView?id=pfs_optimization_theory_work_rules_match_time.htm&type=0

For example: 

Engineer Calendar -> 5:00 - 13:00
New changes->
Scheduled start:30/03/2023 9:30
Scheduled End:30/03/2023 15:30
Duration: 6 hours

New Scheduled end auto-updated after refresh: 31/03/2023 07:30
in this given example, the Resource calendar is from 5:00 - 13:00. So when you set the new scheduled end date as 30/03/2023 at 15:30. the Resource can work up to 13:00 only as per the calendar. The left job of 2.5 hours will get moved forward to the next day which will start from 5:00 as per the resource calendar.
So it will end at 7:30 31/03/2023(the next day) after adding 2.5 hours in 5:00. That is how the scheduled end is calculated and as 31/03/2023 07:30.
However, if you updated only the scheduled end. It won't be updated again. As Scheduled end calculation will not get triggered.
Knowledge 기사 번호

000395108

 
로드 중
Salesforce Help | Article