Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Answered

Set Resources start and and times, as the time they are required to be on site.

(2) ShareShare
ReportReport
Posted on by 10
Hi,
 
I am trying to set up scheduling in Field Service, and I have noticed that the schedule board sets whatever is entered in the users working hours start time, as them time they have to leave their home or office, not the time they have to arrive to the customer (this is the same for the end of the day based on the resources end time).
 
However we have a customer who wants the working hours to be based on when they have to arrive to the customer on the first job of the day, and leave the customer on the last job of the day.
 
For example, if a resource has a start time of 8am in their working hours, and the travel time to the customer is 45m, then currently the schedule board will set the leave time at 8am with an arrival time at 8:45am.  But our customer needs the leave time to be 7:15am with the arrival time being 8am (with the same logic for the end of the day).  Their logic being that for most employees working in a single location, the travel time and from and from work would be in the employees own time,.  The fact that the addresses the engineers are visiting are fairly local, and the fact that the engineers leave from home and arrive back to home, they believe that the travel time to the first job of the day, and travel time from the last job of the day, should also be in the employee's own time.  But I cannot see how to set Field Service to calculate the time in this manner.  Is it possible to do this?
 
Many thanks,
 
Trevor
  • TS-14041020-0 Profile Picture
    10 on at
    Set Resources start and and times, as the time they are required to be on site.
    Hi Daivat,
     
    Thanks for this, not the simple answer I was hoping for, but at least I know I am not missing anything.  I think we would explore the plugin route, that shouldn't be too bad for the first appointment of the day, not sure how we would handle the last appointment of the day, as the "Find Availability" would not suggest slotting in appointments that would me the engineer would not arrive home after their working hours.
     
    I am really surprised Field Service does not have a "Customer Location" choice for the start and end location for the resource, as suggested by Holly, I can't think that this is the only customer who needs this.
     
    Thanks for your help,
     
    Trevor
  • Verified answer
    Daivat Vartak (v-9davar) Profile Picture
    6,651 Super User 2025 Season 1 on at
    Set Resources start and and times, as the time they are required to be on site.
    Hello Trevor,
     

    ou've hit a common point of customization in Field Service. Out-of-the-box, the schedule board and its calculations are indeed centered around the resource's defined working hours as their "at work" window. What your customer wants is a shift in this logic to consider the customer-facing time as the core of the working hours.

    Out-of-the-Box Limitations:

    Directly configuring Field Service to treat the first arrival and last departure at a customer site as the boundaries of billable/working hours, while excluding travel to the first and from the last job, isn't a standard setting. The system is designed with the resource's workday as the primary frame of reference.

    Possible Approaches and Workarounds (with varying levels of complexity):

    While there isn't a simple toggle switch for this, here are a few potential approaches you could explore:

    1. Adjusting Resource Working Hours (Manual/Semi-Automated):

    • Concept: You could try to manually or semi-automatically adjust the resource's working hours to account for the estimated travel time to the first job and from the last job.

    • How it would work:

      • If a resource starts at 8:00 AM and their first job typically involves a 45-minute commute, you would manually set their working hours start time to 7:15 AM.
      • Similarly, if their last job ends at 5:00 PM and the commute home is 30 minutes, you'd set their working hours end time to 5:30 PM. 

    • Limitations:

      • Inaccurate Travel Estimates: Travel times can vary significantly based on location, traffic, and the actual first/last job assigned. This makes pre-calculating a fixed adjustment difficult.
      • Multiple Jobs: On days with multiple jobs, the travel between jobs is correctly accounted for within the working hours. This approach only addresses the first and last trips.
      • Maintenance Overhead: Manually adjusting working hours daily or even weekly would be a significant administrative burden.
      • Reporting Issues: Reporting on actual working hours vs. scheduled working hours might become less accurate.

      •  

    2. Utilizing Booking Start/End Time Adjustments (Potentially Complex):

    • Concept: You might explore using workflows or plugins to automatically adjust the start time of the first booking and the end time of the last booking of the day for each resource.

    • How it would work:

      • When the first booking of the day is created for a resource, a workflow/plugin could trigger to shift the booking's start time earlier by the estimated travel duration from the resource's start location (likely their home if no other starting point is defined).
      • Similarly, when the last booking of the day is completed, a workflow/plugin could potentially extend the booking's end time to encompass the travel time back to their home. 

    • Limitations:

      • Determining First and Last Booking: Reliably identifying the absolute first and last booking of a resource's day programmatically can be complex, especially with cancellations or rescheduling.
      • Travel Time Calculation: You'd need a way to accurately estimate travel time from the resource's start location to the first job and from the last job to their end location. This might involve geocoding and using the map service.
      • Impact on Schedule Board Display: This might visually represent the "working time" on the schedule board differently than your customer expects, as the booking durations would include travel.
      • Plugin/Workflow Development: This requires custom development and thorough testing. 

      •  

    3. Customizing the Schedule Board Display (Visual Adjustment Only):

    • Concept: You could potentially customize the schedule board's visual display to appear as if the working hours are aligned with the first arrival and last departure, without actually changing the underlying data.
    • How it would work: This would involve modifying the CSS and potentially some client-side scripting of the schedule board to visually offset the working hour blocks.

    • Limitations:

      • Visual Only: This would only change how it looks on the schedule board. The actual booking start and end times, as well as any time calculations for billing or resource utilization, would still be based on the defined working hours.
      • Complexity and Supportability: Customizing the schedule board's UI can be complex and might be affected by future updates to Field Service. 

      •  

    4. Adjusting Billing and Reporting Logic (Separate Consideration):

    • Concept: If the primary driver for this requirement is billing the customer only for the time the engineer is on-site, you might consider adjusting your billing and reporting logic instead of trying to redefine working hours.

    • How it would work:

      • Focus on capturing the actual arrival and departure times at the customer site (which Field Service does through booking statuses and audit logs).
      • Customize your invoicing and reporting to calculate billable hours based on the time spent at the customer location, excluding the travel to the first and from the last job. 

    • Limitations: This doesn't directly address how the schedule board visually represents the resource's day, but it can satisfy the billing requirements.

    •  

    Which Approach to Consider:

    Given the limitations of the out-of-the-box functionality, achieving your customer's exact requirement will likely involve some level of customization.

    • Start by discussing the primary goal: Is it purely visual on the schedule board, or does it impact billing and resource utilization calculations?
    • For visual representation only (and if you have development resources): Exploring schedule board UI customization (Option 3) might be a possibility, but with caution regarding complexity and supportability.
    • For potential impact on scheduling and if you have development resources: Carefully consider Option 2 (adjusting booking times), but be mindful of the complexity in identifying the first and last bookings and accurately calculating travel.
    • For billing accuracy: Option 4 (adjusting billing and reporting) is often a more robust and less intrusive approach, as Field Service already captures the necessary time stamps for on-site work.
    • Manual Adjustment (Option 1) is generally not scalable or accurate enough for a long-term solution.

    •  

    Recommendation:

    I would strongly recommend focusing on Option 4: Adjusting Billing and Reporting Logic. Field Service is well-equipped to track the actual arrival and departure times at customer locations. Customizing your billing and reporting to use these timestamps for invoicing will likely be more reliable and less prone to issues than trying to redefine the fundamental concept of resource working hours within the system.

    If a visual representation on the schedule board is absolutely critical, then a very careful and well-tested implementation of Option 2 (adjusting booking times) might be considered, but with a full understanding of its complexities. Avoid Option 1 due to its manual nature and Option 3 due to its potential for maintenance issues.

    It's crucial to thoroughly analyze the implications of any customization on other parts of your Field Service setup and to test any changes extensively in a non-production environment. You might also want to consult with a Field Service consultant who has experience with advanced customization scenarios.

     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more. If you have further questions, please feel free to contact me.
     
    My response was crafted with AI assistance and tailored to provide detailed and actionable guidance for your Microsoft Dynamics 365 query.
     
    Regards,
    Daivat Vartak
  • TS-14041020-0 Profile Picture
    10 on at
    Set Resources start and and times, as the time they are required to be on site.
    Hi Holly,
     
    Thank you for your reply, the first two options look great, however, I don't seem to be able to set these options in the way you have suggested.
     
    I only have the options on the resource for "Location Agnostic", "Resource Address" and "Organizational Unit Address", I cannot see an option for "Customer Address".
     
     
    Also in the Booking Setup Metadata, I cannot see anything relating to the start time calculations.
     
     
     
    Thanks for your help on this,
     
    Trevor
  • Suggested answer
    Holly Huffman Profile Picture
    5,917 on at
    Set Resources start and and times, as the time they are required to be on site.
    Good morning, afternoon, or evening :) depending on your location!
     
    While Field Service typically calculates travel time based on the resource's start location, you can adjust this behavior using custom settings and configurations.
    Possible Solutions:
    1. Modify Start & End Locations in Resource Settings
      • Go to Field Service > Resources and select the resource.
      • Under Scheduling, set Start Location and End Location to Customer Address instead of the default home/office location.
      • This ensures the system calculates working hours based on arrival at the first job.
    2. Adjust Booking Setup Metadata
      • Navigate to Field Service > Administration > Booking Setup Metadata.
      • Modify the Start Time Calculation to factor in arrival time rather than departure time.
      • This customization ensures that the schedule board reflects the correct timing.
    3. Use Travel Time Constraints
      • In Work Order Settings, define Time From Promised and Time To Promised fields to specify when the resource must arrive.
      • This forces the scheduling assistant to prioritize arrival time rather than departure time.
    4. Custom Business Rules or Power Automate Flow
      • If the built-in settings don’t fully meet the requirement, consider using Power Automate or Business Rules to adjust scheduling logic dynamically.
      • A workflow can calculate travel time and adjust the resource’s start time accordingly.
     
    Hope this helps!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,273 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,019 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans