BeyondERP.Newsletter
Menu

Setup step on the Accrue leave and absence plans page · Leave and absence

Schedule the leave accrual run

Decide when the accrual job runs and with which date, so balances are complete for each accrual period.

See how to set it up Back to Leave and absence

Used by
Human resource assistant
Business process
Develop leave and absence policies
Menu item
LeaveAccrualController
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, “Accrual covers the whole period”, 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 isA process dialog that runs the leave accrual for leave and absence plans, for many employees at once.
What you do hereUse this page to award the time off that employees have earned under their leave plans up to a chosen date, for all companies, all plans or a single plan.
ExampleFor example, BEAT runs the accrual on 1 February as of 1 February for its monthly PTO-US plan, so the 160 enrolled employees each receive January's 8.00 hours.
Accrue leave and absence plans 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

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 itAt the end of each accrual period, or before employees need current balances, for example before a payroll run.
How oftenPer accrual period of your leave plans, often set as a recurring job.
Batch settingsSelect Run in the background with Recurrence to accrue every period automatically, and Alerts to be told when it finishes.
What the output showsAccrual transactions that raise each enrolled employee's balance for the leave types in the plans. A balance that is too low usually means the Accrue as of date didn't cover the full accrual period.

Source: Microsoft Learn

Setup steps on this page

Schedule the leave accrual run

Decide when the accrual job runs and with which date, so balances are complete for each accrual period.

Steps from Microsoft

  1. Go to Leave and absence > Manage leave > Accrue leave and absence plans.
  2. In Accrue as of, select Today's date, or select Custom date and enter the date up to which time off is earned. For plans that award at period end, the date must cover the whole period.
  3. Select All companies to accrue everywhere, or set All plans to No and pick one Leave plan. You can't pick a single plan when All companies is selected.
  4. To accrue for one worker only, start from the employee's record under Leave instead.
  5. Open Leave accrual audit and an employee's View time off, Balances tab, to see the new accrual transactions.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
Accrue as ofThe date up to which accruals are calculated: today's date or a custom date.Microsoft Learn
All companiesRuns the accrual for every company; you then cannot pick a single leave plan.Microsoft Learn
All plansSet to No to limit the accrual to one leave plan.Microsoft Learn
Leave planThe single leave plan to accrue when All plans is No.Microsoft Learn
Run in the backgroundRuns the accrual as a batch job, which can be set to recur and to send alerts.Microsoft Learn

Common errors and fixes

MessageWhat to do
Employees received less time off than the plan gives for the period.For plans that award at the accrual period end date, run the accrual with an Accrue as of date after the period, for example 1 February to include all of January. Microsoft Learn
An employee's balance doesn't change after the run.Check that the employee is enrolled in the plan from a date before the period (Assign to employees, or Leave > Leave and absence on the employee) and that no accrual suspension covers the date. Microsoft Learn

Test checklist

  1. Leave accrual audit shows the run with date and user.
  2. A sample employee's current balance rose by the expected accrual.
  3. Only the selected plan accrued when All plans was No.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Schedule the leave accrual runA recurring batch job (Run in the background with Recurrence) that runs the day after each accrual period ends, with Accrue as of set to that day and All plans = Yes, plus an alert to the person who checks the run.Plans that award at the accrual period end date only give the full amount when the run covers the whole period, and Learn's dialog supports recurrence and alerts in the background.How should the leave accrual run?Running the accrual on the last day of the period, for example 31 January, so January isn't awarded until the next run.Test: Accrual covers the whole period

Feature management and licence

Licence or add-inOn the live system, Human resource assistant runs this job.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyRuns in the current company, or in every company when All companies is Yes. With All companies you can't limit the run to one plan. Microsoft Learn
Can it be undoneReversible with effort: Accruals dated today or later can be deleted per plan and run again; older accruals stay.
If you change it laterWhen a plan awards time off at the end of each accrual period, the accrual date you choose must cover the whole period or the employee will not receive the full amount. Microsoft Learn
Technical architect

6Technical

Menu itemLeaveAccrualController Checked in Dynamics 365
FormSysOperationTemplateForm Checked in Dynamics 365
Who can open it

1 security role. Select a role to see its duties and privileges.

  • RoleHuman resource assistantHcmHumanResourceAssistant
    • DutyMaintain worker-specific leave and absence processesLeaveProcessMaintain
      • PrivilegeProcess accruals for leave and absenceLeaveAccrualProcess
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 itTo use itHuman resource assistant HcmHumanResourceAssistantGive 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=LeaveAccrualController
Data migrationLoad order: Accrue leave and absence plans has no data entity in Data management: it creates accrual transactions from the enrollments. To bring opening balances from another system, load them with the Leave and absence bank transaction V2 entity, then run the accrual from the go-live date so the balance isn't counted twice.Load first: Leave and absence plan V2, Leave and absence enrollment V2Microsoft Learn
Everyone

8Sources