BeyondERP.Newsletter
Menu

Job page · Production control

Clean up registrations

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.

Business process
Manage data
Menu item
action:JmgCleanupTermRegPC
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 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 hereUse 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.
ExampleFor example, with a maximum age of 20, every registration older than 20 days is archived in the way selected in the Cleanup mode field.
Clean up registrations 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 pathProduction control › Periodic tasks › Clean up › Clean up registrations
Set up firstCalculate (time and attendance) Microsoft Learn
Used next byRaw registrations archive Microsoft Learn
Related pagesRaw registrations Microsoft Learn Archive future registrations Microsoft Learn
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 old, processed time and attendance registrations make the raw registrations table large enough to slow the system down.
How oftenPeriodically, as Microsoft recommends; set the interval to match the Maximum age you keep.
Batch settingsRun it as a batch job at a regular interval so the raw registrations table stays small.
What the output showsProcessed 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.

Source: Microsoft Learn

Steps from Microsoft

  1. Go to Production control > Periodic tasks > Clean up > Clean up registrations.
  2. 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.
  3. In the Maximum age field, enter the number of days of registrations to keep in the raw registrations table, for example 20.
  4. If you selected To file, enter or select the export file in the File name field.
  5. Open Raw registrations archive afterwards to find registrations moved with To table; only processed registrations are cleaned up.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
Cleanup modeWhether old registrations are moved to the archive table, exported to a file, or permanently deleted.Microsoft Learn
Maximum ageRegistrations older than this many days are cleaned up.Microsoft Learn
File nameThe export file used when the mode is To file.Microsoft Learn

Test checklist

  1. Processed registrations older than the maximum age are gone from raw registrations.
  2. They appear in the archive or file when you chose To table or To file.
  3. Unprocessed registrations remain.

Source: Microsoft Learn

Solution architect

4Design impact

Can it be undoneNo, with Delete: Registrations removed with Delete are gone permanently. With To table they can still be viewed in the raw registrations archive. Keep registrations needed for documentation. Microsoft Learn
If you change it laterRegistrations removed with the Delete mode are gone permanently, so keep any registrations that may later be needed as documentation. Microsoft Learn
Technical architect

5Technical

Menu itemaction:JmgCleanupTermRegPC Checked in Dynamics 365
FormDialog Checked in Dynamics 365
Roles to set it up and use itTo use itProduction supervisor ProdProductionSupervisorGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365
Developer

6Developer

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

7Sources