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, “Registrations older than the maximum age move to the archive”, 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 cleanup routine that removes old, processed time and attendance registrations from the raw registrations table by moving them to an archive table, exporting them to a file, or deleting them.
What you do here
Use this page to keep the raw registrations table small so that time and attendance performance does not degrade, choosing a cleanup mode and the maximum age in days of registrations to keep.
Example
For example, with a maximum age of 20, every registration older than 20 days is archived in the way selected in the Cleanup mode field.
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 old, processed time and attendance registrations make the raw registrations table large enough to slow the system down.
How often
Periodically, as Microsoft recommends; set the interval to match the Maximum age you keep.
Batch settings
Run it as a batch job at a regular interval so the raw registrations table stays small.
What the output shows
Processed registrations older than the maximum age are moved to the archive, exported to the file, or deleted. Registrations that remain are newer than the maximum age or not processed yet.
Keep the raw registrations table small so time and attendance stays fast.
Steps from Microsoft
Go to Production control > Periodic tasks > Clean up > Clean up registrations.
In the Cleanup mode field, select To table to move old registrations to the raw registrations archive, To file to export them, or Delete to remove them permanently.
In the Maximum age field, enter the number of days of registrations to keep in the raw registrations table, for example 20.
If you selected To file, enter or select the export file in the File name field.
Open Raw registrations archive afterwards to find registrations moved with To table; only processed registrations are cleaned up.
Recent registrations stay in the raw registrations table
The cleanup doesn't touch data that isn't processed, and keeps registrations newer than the Maximum age. Calculate, approve and transfer them first. Microsoft Learn
Test checklist
Processed registrations older than the maximum age are gone from raw registrations.
They appear in the archive or file when you chose To table or To file.
Cleanup mode To table with a Maximum age that covers your payroll correction window, for example 60 days, as a recurring batch.Learn recommends periodic cleanup because registrations slow the application down; To table keeps them viewable in the archive.
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 supervisor ProdProductionSupervisorGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365
Load order: Clean up registrations has no data entity in Data management, because it is a periodic job that changes records that already exist. Old registrations aren't migrated.Checked in Dynamics 365