web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
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

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    Adrian Begovich Profile Picture
    1,032 Moderator on at

    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)
  • Ross Ben Profile Picture
    30 on at

    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

  • Verified answer
    Shayan Soheili Profile Picture
    940 on at

    Hello Ross,

    Did you check also work hours of resources?

    Regards,

    Shayan

  • Verified answer
    Al Iggs Profile Picture
    Microsoft Employee on at

    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.

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 > Field Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans