Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Field Service forum / Deleting msdyn_timeoff...
Field Service forum

Deleting msdyn_timeoffrequest doesn't delete the grayed out area in the scheduling board

Posted on by 30

Hello Community,

Creating a msdyn_timeoffrequest adds a grayed out area the scheduling board, deleing the same msdyn_timeoffrequest wont remove it.

Does anyone know how to remove the gray are programmatically?

Dynamics 365 Online 9.x

  • Verified answer
    Al Iggs Profile Picture
    Al Iggs on at
    RE: Deleting msdyn_timeoffrequest doesn't delete the grayed out area in the scheduling board

    The timeoff request simply adjusts the resource's working hours, i.e. it sets the respective period to "not working". This will not be undone if you delete the request. Especially if you had overlapping requests, we would need to keep an audit trail to be able to un-do. If you want to remove the non-working hours, simply set the period to "working" again, this should also be doable through the API.

  • Verified answer
    Shayan Soheili Profile Picture
    Shayan Soheili 940 on at
    RE: Deleting msdyn_timeoffrequest doesn't delete the grayed out area in the scheduling board

    Hello Ross,

    Did you check also work hours of resources?

    Regards,

    Shayan

  • Ross Ben Profile Picture
    Ross Ben 30 on at
    RE: Deleting msdyn_timeoffrequest doesn't delete the grayed out area in the scheduling board

    Resource Type: User

    I have no issue deleting msdyn_timeoffrequests.

    Creating a msdyn_timeoffrequest will occupy a time slot on the calendar(grayed out), that time slot will still be occupied after said msdyn_timeoffrequest is deleted.

    Is there a way to delete the gray part based on the msdyn_timeoffrequest?

    Untitled.png

  • Suggested answer
    Adrian Begovich Profile Picture
    Adrian Begovich 21,009 Super User 2024 Season 2 on at
    RE: Deleting msdyn_timeoffrequest doesn't delete the grayed out area in the scheduling board

    Hi Ross Ben,

    Can you post a screenshot of the greyed out area of the scheduling board?

    You can delete a msdyn_timeoffrequest record programmatically by using the DeleteRequest, Delete, or the below Web API Operation.

    DELETE [org URI]/api/data/v9.0/msdyn_timeoffrequests(msdyn_timeoffrequestid)

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

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... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans