Announcements
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
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)
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?
Hello Ross,
Did you check also work hours of resources?
Regards,
Shayan
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.
Congratulations to a top community star!
In our never-ending quest to help the Dynamics 365 Community members get answers faster …
Welcome to the next edition of the Community Platform Update. This is a status …
Stay up to date on forum activity by subscribing.