BeyondERP.Newsletter
Menu

Job page · Time and attendance

Deactivate past workers

A periodic job that deactivates time registration workers who are no longer active, for example after their employment ends.

Business process
Record employee time
Menu item
JmgDeactivatePastWorkers
Setup steps
1 on this page
Show what matters for
PAGE GUIDEWhat the page does and how to use it8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA periodic job that deactivates time registration workers who are no longer active, for example after their employment ends.
What you do hereUse this job to keep workers who are no longer active out of the calculation and approval of time and attendance registrations.
ExampleFor example, after several workers' employment is terminated, the job is run so they no longer appear in calculations and approvals.
Deactivate past workers 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 time and attendance › Record employee time
Menu pathTime and attendance › Periodic tasks › Deactivate past workers
Set up firstApprove Microsoft Learn
Used next byTime registration workers Microsoft Learn
Related pagesTransfer to pay 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 itAfter workers' employment has ended and their last registrations are calculated, approved and transferred.
How oftenPeriodically, for example once per pay period, or on demand after terminations.
Batch settingsRun it as a recurring batch job, for example after each pay period closes.
What the output showsWorkers who are no longer active are deactivated, so they're no longer included in calculations and approvals. A worker who still appears on the Calculate page is usually still marked as active in the time registration worker setup.

Source: Microsoft Learn

Setup steps on this page

Deactivate leavers after their last pay period

Keep workers who left out of calculation and approval.

Steps from Microsoft

  1. Go to Time and attendance > Periodic tasks > Deactivate past workers.
  2. Before you run it, make sure the last registrations of workers who left are calculated, approved and transferred, because deactivated workers are left out of calculation and approval.
  3. Enter batch settings if you want the job to run regularly, for example after each payroll period.
  4. Run it, then open Time registration workers and filter on Active to see which workers were deactivated.

Source: Microsoft Learn

Common errors and fixes

MessageWhat to do
A leaver's last days aren't in the pay fileCalculate, approve and transfer the last days before deactivating; deactivated workers are left out of calculation and approval. Microsoft Learn

Test checklist

  1. Workers who left no longer show as active on Time registration workers.
  2. Active workers are unchanged.
  3. The Calculate page no longer lists the deactivated workers.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Deactivate leavers after their last pay periodRun it after each pay period closes, once leavers' last days are transferred.Deactivated workers are excluded from calculation and approval.Run it in batch or by hand?Running it before the leaver's last days are approved, so they are never paid through Time and attendance.Test: Leaver deactivated

Feature management and licence

Licence or add-inTime and attendance roles come from the security read in the Technical section. On this system access comes from duties such as Production supervisor. The Microsoft Learn article for this page names no Feature management feature to turn on.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer company: Time and attendance data is kept per legal entity (every Time and attendance entity in Data management is per company), so the job or report works on the registrations of the company it is run in. Microsoft Learn
Can it be undoneNo reversal: The job has no undo run. To bring a worker back, make the time registration worker active again on Time registration workers. Microsoft Learn
If you change it laterDeactivates time registration workers who are no longer active, so they're left out of calculation and approval. Microsoft Learn
Technical architect

6Technical

Menu itemJmgDeactivatePastWorkers 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

7Developer

Open it by URLhttps://<your-environment>/?mi=JmgDeactivatePastWorkers
Data migrationLoad order: Deactivate past workers has no data entity in Data management, so it can't be loaded from a file or a configuration template. Load only active time registration workers at go-live; this job keeps the list clean afterwards.Checked in Dynamics 365
Everyone

8Sources