web
You’re offline. This is a read only version of the page.
close
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

What the Heck??? Field Service Bookings Auto Changing End Date/Time when I set WO to Complete

(4) ShareShare
ReportReport
Posted on by 390
The key WO Status entries in this discuss are:
Finished Need Parts
Finished Need Return
WO Completed
 
 
Most of our work is multiple day Work Orders.  So when technicians finish the day but not the job they use one of the Finished statuses, and use the WO Complete when the job is done.
 
Finished Need Parts & Finished Need Return have the following settings
Booking Commited
Field Service Status to Completed
Status Completes Work Order set to OFF
 
WO Completed is the same except Status Completes Work Order set to ON
 
I just closed out a Work order that had the initial day of booking with the Finished Need Return and the second day booking with WO Completed.
 
1.  The WO Status was still showing In Progress
2.  When I set to Completed it changed the end date and time of the first day booking to NOW.
 
Why is it not working as I expect (which is to set the WO Status to Completed once the Booking Status changes to WO Completed?
 
 
 
 
I have the same question (0)
  • Suggested answer
    Holly Huffman Profile Picture
    6,538 Super User 2025 Season 2 on at
    Good morning, afternoon, or evening :) depending on your location!
    Hope you are well today.
     
    The behavior you're experiencing with Field Service Bookings auto-changing the end date/time when setting the Work Order (WO) to "Completed" is likely due to how Dynamics 365 Field Service handles booking timestamps and status updates. Here's a breakdown of the issue and recommended solutions:
     
    Understanding the Issue:
    1. Booking Timestamps Behavior:
      • Dynamics 365 Field Service automatically updates booking timestamps when the booking status changes. This includes the end date/time, which may default to the current time if not explicitly set.
      • The system assumes that the booking is being completed at the moment the status is updated, which explains why the end date/time changes to "NOW."
    2. Work Order Status Logic:
      • The WO status remains "In Progress" because the system relies on the "Status Completes Work Order" setting to determine whether the WO should be marked as "Completed."
      • For statuses like "Finished Need Parts" and "Finished Need Return," where "Status Completes Work Order" is set to OFF, the WO status won't automatically update to "Completed."
    Recommended Solutions:
    1. Adjust Booking Status Settings:
      • Review the settings for "Finished Need Parts" and "Finished Need Return." If you want these statuses to contribute to marking the WO as "Completed," consider enabling "Status Completes Work Order."
      • Alternatively, ensure that the "WO Completed" status is applied correctly to trigger the WO status change.
    2. Manually Set End Date/Time:
      • Before changing the WO status to "Completed," manually set the end date/time for the first day's booking to the desired value.
      • This prevents the system from overwriting the end date/time with the current timestamp.
    3. Use Custom Logic:
      • Implement custom JavaScript or a plugin to handle the WO status update logic. For example:
        • Check the booking statuses and timestamps.
        • Automatically update the WO status to "Completed" when all bookings are marked as "WO Completed."
    4. Enable Booking Journals:
      • Booking journals can help track the actual start and end times for bookings. Ensure that the "Time Entry Generation Strategy" is set to "Auto Generate from Booking Timestamps".
      • This provides a more accurate record of booking durations and prevents unintended changes.
    5. Test and Validate:
      • Test the changes in a sandbox environment to ensure the desired behavior before applying them to production.
     
    Hope this helps!
  • Suggested answer
    Fameeda Yaseen Profile Picture
    451 on at
    HI,
     
    There is configuration in the booking status to toggle the close order to Yes or No.  here is the steps.

    Open the booking status against which you want to automate the closing settings. select the ‘Field Service’ tab on the booking status, you’ll notice a new column that is called ‘Status Completes Work Order’. If this column is set to ‘Off’, it means that when this booking status is selected, the associated work order will not be fully completed or closed.

    This also results in the ‘Completed On’ column on the work order not getting populated and the work order ‘System Status’ will not be set to ‘Completed’. Instead, it will be set to ‘Unscheduled’. In other words, by using this booking status, a resource can ‘partially’ complete a work order and that same work order can be scheduled at a later time for full completion. When the ‘setting ‘Status Completes Work Order’ column is set to ‘On’, this means that if this status is selected on a booking, the related work order will be fully closed and the system status of the work order (Field Service Status) will be set to ‘Completed’ (unless you renamed the Field Service Status to something else).

    Hope this information helps you. 

  • Verified answer
    Daivat Vartak (v-9davar) Profile Picture
    7,835 Super User 2025 Season 2 on at
    Hello crham,
     

    You've highlighted a common point of confusion with how Work Order and Booking statuses interact in Dynamics 365 Field Service, especially with multi-day Work Orders. Let's break down why you're seeing this behavior and how to achieve your desired outcome.

    Understanding the Interaction of WO Status and Booking Status:

    • Work Order Status: Represents the overall state of the entire work order (e.g., Open, In Progress, Completed, Canceled).
    • Booking Status: Represents the status of a specific technician's booking (time slot) on the work order (e.g., Scheduled, Traveling, In Progress, Completed, Finished Need Parts, WO Completed).

    •  

    Why Your Expectation Isn't Being Met (and the Explanation of the Behavior):

    1. WO Status Remains "In Progress": The Work Order Status is designed to reflect the overall completion of all the work required on that order. Even if one booking reaches a "WO Completed" status, the Work Order itself might still have other active or incomplete bookings. The system, by default, waits for all relevant work (typically indicated by at least one booking reaching a "Completes Work Order" status) before automatically setting the Work Order to "Completed."

    2. Changing End Date/Time of the First Day Booking: This is the more critical issue. When you manually changed the Work Order Status to "Completed" after the second booking with "WO Completed," the system likely tried to finalize the entire Work Order. Part of this finalization process involves setting the actual end times for all associated bookings. Since the first day's booking was marked as "Finished Need Return," the system might have incorrectly assumed that the "Completed" status of the overall Work Order implies that all work on that booking is now considered finished at the time of Work Order completion.

       


    3.  

    How to Achieve Your Desired Outcome (Setting WO Status to Completed Automatically):

    To automatically set the Work Order Status to "Completed" when any booking on that Work Order reaches the "WO Completed" status, you'll need to adjust the system's configuration. Here's the recommended approach:

    1. Configure the "WO Completed" Booking Status:

    • You've already mentioned that "WO Completed" has "Status Completes Work Order" set to ON. This is correct and the fundamental setting for triggering the Work Order completion.

    •  

    2. Review System Settings for Work Order Completion:

    • Navigate to Field Service > Administration > Field Service Settings.
    • Look for settings related to Work Order Completion.
    • "Auto Close Work Order Completed From Schedule": This setting, if set to Yes, will automatically close a Work Order when the last booking on it is set to a status that has "Status Completes Work Order" set to Yes.

      • Consider this setting: If your workflow always involves the "WO Completed" status being the final booking status on a multi-day WO, enabling this might work. However, if there's a chance of other bookings remaining in a non-final status, this might close the WO prematurely.

      •  

    3. Implement a Workflow (Recommended and More Flexible):

    A Real-time Workflow is the most flexible and reliable way to achieve your specific requirement:

    • Go to Settings > Processes > + New.
    • Process Name: Set a descriptive name (e.g., "Auto Complete WO on WO Completed Booking").
    • Category: Workflow.
    • Entity: Booking (Bookable Resource Booking).
    • Run this workflow in the background (recommended): Uncheck this initially for testing, but enable it for production.
    • Click OK.

    •  

    Workflow Steps:

    1. Start when: Record is created, Record status changes.
    2. Check the "Record is created" option.
    3. Check the "Record status changes" option.
    4. Add a "Check Condition":

      • (Booking (Status)) equals (WO Completed) - Select the "Booking Status" field and check if it equals your "WO Completed" status. 

    5. Add a "Check Condition":

      • (Booking (Work Order)) does not equal (null) - Ensure there's a related Work Order. 

    6. Add an "Update Record" step:

      • Entity: Work Order (regarding).
      • Click Set Properties:

        • Set the Work Order Status field to Completed.
        • You might also want to set the System Status (msdyn_systemstatus) to Completed.
        • Important: Do NOT directly manipulate the end date/time of other bookings in this workflow. The issue you experienced with the first day's booking was likely due to a manual Work Order status change. The system should handle the end times of individual bookings based on their own status transitions. 

      • Click Save and Close. 

    7. Save and Activate the Workflow.

     

    Explanation of the Workflow:

    This workflow will trigger whenever a Booking record's status changes to "WO Completed." It then checks if there's a related Work Order and, if so, updates the Work Order's status to "Completed."

     

    Addressing the End Date/Time Issue:

    The issue of the first day's booking end date/time changing to "NOW" when you manually set the Work Order to "Completed" after the fact suggests that the system's built-in Work Order completion logic might be trying to finalize all associated bookings.

     

    To avoid this unintended change:

    • Rely on the automated workflow: Once you have the workflow in place, the Work Order status should change to "Completed" automatically when the "WO Completed" booking occurs. You shouldn't need to manually change the Work Order status.
    • Review any other plugins or workflows: Check if you have any other custom plugins or workflows that might be interfering with the Work Order or Booking status updates and potentially modifying booking end times.

    •  

    In summary, configure your "WO Completed" booking status correctly (which you have), and then implement a Real-time Workflow that triggers on the "WO Completed" booking status to automatically update the related Work Order status to "Completed." Avoid manually changing the Work Order status after a "WO Completed" booking has occurred to prevent the unintended modification of previous booking end dates/times.

     
    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
  • crham Profile Picture
    390 on at
    Daivat,
     
    Thank you for your thorough answer.
     
    ...and while I appreciate each response and effort, you are the only one that paid attention to the details and read that I already had the WO Completed set to complete the Work Order.
     
    I was intrigued by a setting you mentioned that I'm unfamiliar with.  However I couldn't find it.  If you can be more specific that would help since:
     
    I did not yet find the setting you mentioned "auto close work order completed from schedule".  Nor could Co-Pilot.
     
    However, I will play with your Workflow process suggestion since it doesn't seem FS logically plays well with multi-day work orders.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 45 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans