Payroll administrator, Process engineer, Production manager and 3 more roles
Business process
Administer system features
Menu item
action:WorkCalendarDelete
Setup steps
1 on this page
How this guide was checked
Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Old working times are deleted up to the date”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone
1What it is and why
What it is
A periodic job that deletes old working times from calendars up to a date you choose.
What you do here
Use this periodic task to remove old calendar working hours before an end date, to keep calendar data small.
Example
For example, with Delete working times until set to 1/1/2025, working hours up to 12/31/2024 are deleted from the filtered calendars, and the hours on 1/1/2025 and later stay.
The page in Dynamics 365. page title tab to open what to set or check
About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.
When to run it
When to run it
When working times for past dates are no longer needed and nothing is scheduled on them any more.
How often
On demand, when calendar working times for past periods have built up.
Batch settings
Run it in the background outside working hours when many calendars are cleaned.
What the output shows
Calendars without working times before the date you entered. Gaps in a schedule after the run usually mean the date was set later than intended.
The end date was later than intended. Recreate the working times for those dates on the calendar (Working times) and reschedule the orders. Microsoft Learn
Test checklist
The filtered calendars have no working times before the date you entered.
Working times on and after that date are unchanged.
An end date before the earliest order, project or job still scheduled on the filtered calendars, run in the background outside working hoursAll working hours up to, but not including, the date are deleted, and scheduling needs working times for the dates it plans on.
On this system the page opens for Production manager, Project manager, Production supervisor, Process engineer and Service delivery manager. No Feature management feature needs to be turned on for this page.
PrivilegeDelete calendar working timesWorkCalendarDeleteProcess
Roles worked out from Microsoft's standard security setup and checked in a working Dynamics 365 system (version 10.0.49)
Roles to set it up and use it
To use itProduction manager ProdProductionManagerProject manager ProjProjectManagerProduction supervisor ProdProductionSupervisorProcess engineer RouteProcessEngineerService delivery manager SMAServiceDeliveryManagerGive people one of these roles. On this system, 6 roles can run this page.Checked in Dynamics 365
Load order: Calendar cleanup has no data entity in Data management, so it can't be loaded from a file or a configuration template. The job deletes data and stores no setup. Calendars move with the Calendar entity (WorkCalendarEntity).Checked in Dynamics 365