BeyondERP.Newsletter
Menu

Job page · Organization administration

Calendar cleanup

A periodic job that deletes old working times from calendars up to a date you choose.

Business process
Manage data
Menu item
action:WorkCalendarDelete
Show what matters for
PAGE GUIDEWhat the page does and how to use it7 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA periodic job that deletes old working times from calendars up to a date you choose.
What you do hereUse this periodic task to remove old calendar working hours before an end date, to keep calendar data small.
Calendar cleanup page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

Business processManage data
Menu pathOrganization administration › Periodic › Calendar cleanup
End user · Functional consultant

3How to do it

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 itWhen working times for past dates are no longer needed and nothing is scheduled on them any more.
How oftenOn demand, when calendar working times for past periods have built up.
Batch settingsRun it in the background outside working hours when many calendars are cleaned.
What the output showsCalendars without working times before the date you entered. Gaps in a schedule after the run usually mean the date was set later than intended.

Source: Microsoft Learn

Steps from Microsoft

  1. Go to Organization administration > Periodic > Calendar cleanup.
  2. Enter the date in Delete working times until. Working hours before this date are deleted; hours on the date itself are kept.
  3. Select Filter to limit the run to certain calendars and leave the others untouched.
  4. Pick a date before the earliest order or project that is still scheduled on those calendars.
  5. Run it, then open the working times of a cleaned calendar to confirm that nothing before the date remains.

Source: Microsoft Learn

Test checklist

  1. The filtered calendars have no working times before the date you entered.
  2. Working times on and after that date are unchanged.
  3. Calendars outside the filter are untouched.

Source: Microsoft Learn

Solution architect

4Design impact

Can it be undoneNo: Deleted working times can't be brought back by the job. Run it only for dates you will no longer schedule in. Microsoft Learn
If you change it laterWorking hours before the end date you enter are deleted; hours on the end date itself are kept. Microsoft Learn
Technical architect

5Technical

Menu itemaction:WorkCalendarDelete Checked in Dynamics 365
FormDialog Checked in Dynamics 365
Roles to set it up and use itTo 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
Developer

6Developer

Open it by URLhttps://<your-environment>/?mi=action:WorkCalendarDelete
Everyone

7Sources