Skip to main content

Notifications

Dynamics 365 Community / Forums / Field Service forum / Want to stop resource ...
Field Service forum
Suggested answer

Want to stop resource from getting booked if has time off request

Posted on by 814

I need to stop the scheduling of a resource if he has approved time of request in that time. Please let me know How I can do it. I want that when we are dragging work order on schedule board and try making a booking, we should not be able to book him on schedule board on his timeoff request period, right now I am able to do his booking even when he has time off request approved.

Any help?

Thanks

  • Suggested answer
    Al Iggs Profile Picture
    Al Iggs on at
    RE: Want to stop resource from getting booked if has time off request

    The idea behind the schedule board is that the dispatcher always has the absolute power, i.e. can even book a resource during time-off.

    The only way to avoid this is creating booking rule, which will be considered by drag and drop and the Schedule Assistant. The rule can then present a warning or prevent the creation/update of the booking.

    Checking the work hours of a resource in your rule's code might be a bigger development effort, what you might want to consider is reflecting the time-off with a separate (dummy) booking. This (1) makes it easier for a dispatcher to distinguish between regular non-working hours and time-off and (2) will likely be easier to check in your booking rule.

    Documentation can be found at docs.microsoft.com/.../set-up-booking-rules and if you do a search in this forum you might also find code samples.

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

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,818 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,147 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans