BeyondERP.Newsletter
Menu

Setup step on the Human resource workflows page · Leave and absence

Set up the leave request workflow

Decide who approves leave requests and which ones are approved automatically.

See how to set it up Back to Leave and absence

Used by
Human resource assistant, Human resource manager
Business process
Develop leave and absence policies
Menu item
WorkflowConfigurationHcm
Main table
WorkflowTable
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, “Reason code routing”, 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 setup page that lists the Human resources workflows and where you create new ones, such as the Leave and absence request workflow that routes time off requests for approval.
What you do hereUse this page to create and configure the leave request workflow, and other Human resources approval workflows, so that requests are approved, rejected or auto-approved by the rules you set.
ExampleFor example, BEAT creates a Leave and absence request workflow that sends sick leave with reason code SURGERY to HR and all other requests to the manager, and auto-approves requests that HR submits for an employee.
Human resource workflows 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.

Setup steps on this page

Set up the leave request workflow

Decide who approves leave requests and which ones are approved automatically.

Steps from Microsoft

  1. Go to Leave and absence > Setup > Human resource workflows.
  2. Select New, and then select Leave and absence request.
  3. When the Open this file? message appears, select Open and sign in.
  4. In the workflow editor, add the approval steps and conditions, for example on Reason code, Leave type or Submitted by Human resources.
  5. Save, activate the workflow, then select it as Workflow ID on each leave type.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
Workflow data elementsLeave request fields a workflow condition can use: Amount, Leave type, Reason code, Status, Submitted by Human resources, Submitted by Manager, Worker and others.Microsoft Learn

Common errors and fixes

MessageWhat to do
Leave requests are approved without review.No workflow is set on the leave type. Create and activate a Leave and absence request workflow and select it as Workflow ID on the type. Microsoft Learn
Absence managers don't get leave work items.Associate the Leave hierarchy with the workflow and use Hierarchy assignment with a configurable hierarchy. Microsoft Learn

Test checklist

  1. On Human resources workflows, select New and choose a workflow such as Identification numbers.
  2. Add the approval element, set Assignment to Hierarchy, add a stop condition, then Save and close and Make active.
  3. As an employee, change the identification number in Employee self service.
  4. Check the change waits for approval and the work item goes to the manager from the employee's primary position.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Set up the leave request workflowOne Leave and absence request workflow: manager approval by hierarchy, HR approval for selected leave types or reason codes, and automatic approval for requests submitted by Human resources or a manager on behalf of an employee.Learn shows these conditions with the workflow data elements Reason code, Leave type, Submitted by Human resources and Submitted by Manager.Who approves time off?Leaving a leave type without a Workflow ID, so its requests are approved automatically.Test: Reason code routing

Feature management and licence

Licence or add-inOn the live system, Human resource assistant and Human resource manager use this page.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyWorkflows are kept per company; each leave type points to its workflow with Workflow ID. Microsoft Learn
Can it be undoneReversible: Workflows can be edited and a new version activated; requests already in review keep their version.
If you change it laterWhen a document is submitted for approval, routing depends on the submitter's primary position, so changes to positions and hierarchies affect who approves. Microsoft Learn
Technical architect

6Technical

Menu itemWorkflowConfigurationHcm Checked in Dynamics 365
FormWorkflowTableListPageRnr Checked in Dynamics 365
TableWorkflowTableShown as “WORKFLOW CONFIGURATIONS” in Record infoKey field: SequenceNumberChecked in Dynamics 365
Who can open it

2 security roles. Select a role to see its duties and privileges.

  • RoleHuman resource assistantHcmHumanResourceAssistant
    • DutySet up position action workflowsHcmPositionActionWFProcessEnable
      • PrivilegeMaintain human resources workflowsWorkflowAuthorHumanResourcesWorkflows
    • DutySet up worker action workflowsHcmWorkerActionWFProcessEnable
      • PrivilegeMaintain human resources workflowsWorkflowAuthorHumanResourcesWorkflows
  • RoleHuman resource managerHcmHumanResourceManager
    • DutySet up position action workflowsHcmPositionActionWFProcessEnable
      • PrivilegeMaintain human resources workflowsWorkflowAuthorHumanResourcesWorkflows
    • DutySet up worker action workflowsHcmWorkerActionWFProcessEnable
      • PrivilegeMaintain human resources workflowsWorkflowAuthorHumanResourcesWorkflows
Checked in Dynamics 365
Roles to set it up and use itTo set it up or change itHuman resource assistant HcmHumanResourceAssistantHuman resource manager HcmHumanResourceManagerGive people one of these roles. On this system, 2 roles can open this page.Checked in Dynamics 365
Actions on the pageWorkflow: Manage, HierarchyChecked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=WorkflowConfigurationHcm
Data migrationLoad order: Human resource workflows has no data entity in Data management backed by its table (WorkflowTable). Create each workflow again in the workflow editor in the new environment, activate it and select it on the leave types.Microsoft data model
Table definitionWorkflowTable columns and relations Microsoft data model
Everyone

8Sources