Human Resources & Payroll: A Custom Module for Microsoft Dynamics 365 Business Central
Every organization runs on two things that standard ERP systems often treat as an afterthought: its people and their pay.
In Microsoft Dynamics 365 Business Central, the finance, sales, inventory, and purchasing engines are mature and deeply integrated — but when it comes to Human Resources and Payroll, the platform leaves a deliberate gap.
This article covers two topics:
- The business benefits of managing HR and Payroll inside Business Central rather than in separate, disconnected systems.
- Why a complete, region-specific payroll capability is not part of standard Business Central, and how we closed that gap by building a custom HR & Payroll module.
Part 1 — Why HR and Payroll Belong Inside Business Central
Business Central is the system of record for a company's finances. When HR and payroll live outside of it, every salary payment, deduction, and accrual has to be re-keyed or imported through fragile integrations. Bringing these two functions into the same platform delivers concrete benefits.
Benefits for Human Resources
- A single source of truth for employee data. Personal details, departments, grades, and compensation all live in one place, tied directly to the finance system that pays them.
- No dual data entry. A new hire, a promotion, or a salary change is entered once and is immediately available everywhere it is needed.
- Cleaner reporting. Headcount, cost-per-department, and compensation analysis run against live ERP data instead of exported spreadsheets.
- Auditability. Every change to an employee record sits inside the same controlled, permissioned environment as the rest of the business's financial data.
Benefits for Payroll
- Direct posting to the general ledger. Payroll runs produce journal entries that flow straight into Business Central's financials — no manual uploads, no reconciliation gaps.
- Accuracy and consistency. Earning codes, deductions, and pay amounts are calculated from the same master data that HR maintains, eliminating mismatches.
- Real-time financial visibility. Salary cost is reflected in the company's numbers the moment payroll is posted.
- Compliance and control. Approval workflows and bank-file generation build governance and statutory compliance directly into the pay process.
The value of integration itself
The real payoff is not HR or payroll in isolation — it is the bridge between them. HR owns the data; payroll consumes it. A department or grade change updates compensation. A mid-month joiner triggers a prorated salary. A new hire in HR becomes a payable employee in payroll. When both functions share one platform and one database, that flow happens automatically and reliably.
Part 2 — The Gap in Standard Business Central
Here is the situation every Business Central customer eventually discovers.
Business Central includes a lightweight Human Resources module. Out of the box it can store employee records, register absences and leave, and track qualifications. It is useful for basic record-keeping.
Business Central does not include a payroll engine. This is not an oversight — it is a deliberate decision by Microsoft. Payroll is left to certified partners and third-party add-ons, for sound reasons:
- Payroll rules are intensely local and regional.
- Tax rates, contribution thresholds, and statutory calculations change constantly.
- Every country — and often every industry — has its own processing and reporting requirements.
Maintaining all of that, everywhere, is not something Microsoft chose to own. As a result, real payroll in Business Central comes from country-specific solutions or from custom development.
Part 3 — Inside the Custom Module
The module is organized around two pillars: Human Resources as the foundation that holds employee and organizational data, and Payroll as the engine that turns that data into accurate, approved, disbursable pay. Below are the ten capabilities the module delivers.
Human Resources — the foundation
- Employee & department details. The module maintains employee master records organized by department, giving the business a clear organizational structure. Department assignment is more than a label — it drives reporting, cost allocation, and the grouping of payroll costs across the organization.
- Salary details. Each employee carries their own salary configuration — the base figures and components that define what they are paid. Because this sits on the employee record inside Business Central, it is always in sync with the data payroll uses to calculate pay.
- Compensation based on employee grades. Rather than defining pay in isolation for every person, compensation is structured by employee grade. Grades standardize pay bands and benefit entitlements across the organization, so compensation is consistent, easy to govern, and simple to update — a change at the grade level flows through to everyone it applies to.
Payroll — setup and structure
- Payroll periods. Payroll periods define the calendar of pay cycles. Every run, calculation, and report is anchored to a period, giving the whole process a consistent time framework.
- Earning codes. Earning codes are the configurable building blocks of an employee's pay — the individual components (basic, allowances, and other earnings) that combine to form total compensation. Defining pay as codes makes the structure flexible and transparent rather than hard-coded.
Payroll — calculation
- Prorated amounts. When an employee joins, leaves, or changes status partway through a payroll period, they should be paid only for the portion worked. The module calculates prorated amounts automatically, ensuring mid-period changes are paid fairly and accurately without manual adjustment.
- Loans. Employee loans are managed within the module and recovered directly through payroll as scheduled deductions. Loan balances and repayments are tracked over time, so recovery is automatic and visible rather than tracked on the side.
Payroll — approval, disbursement, and reporting
- Salary approval workflow. Payroll does not move straight from calculation to payment. A salary approval workflow routes each run for the required sign-off, moving it from draft to approved only once authorized. This builds governance and accountability directly into the pay process and creates a clear audit trail.
- Bank files. Once approved, the module generates bank files — the structured payment files used to disburse salaries through the banking system. For Saudi Arabia this is the mechanism that supports salary payment under the Wage Protection System (WPS), turning an approved payroll run into a file the bank can process.
- Monthly salary reports. The module produces monthly salary reports that give HR, finance, and management clear visibility into pay for each period — supporting review, reconciliation, and record-keeping.
Part 4 — Extending to Employees: The ESS Portal
Beyond the core Business Central module, employee-facing functionality is delivered through an Employee Self-Service (ESS) portal built on the Microsoft Power Platform. This extends selected capabilities — such as loan requests, payslip visibility, and leave applications — out to employees directly, while Business Central remains the system of record behind it.
Employees interact with the portal via Microsoft Power Apps; the approved data is securely written back to Business Central using Dataverse and standard API endpoints.
Conclusion
Standard Business Central gives an organization strong financials and a basic employee register, but it stops short of real payroll — especially for a market like Saudi Arabia with its own statutory rules and WPS-based salary disbursement. By building a custom HR & Payroll module in AL, we deliver both functions natively inside Business Central: HR holds employee, department, grade, and salary data as the trusted foundation; payroll turns it into accurate, prorated, loan-adjusted pay that is approved, disbursed through bank files, and reported each month — all posting straight to the ledger. Extended to employees through a Power Platform self-service portal, the result is one platform, one source of truth, and a pay process that is accurate, compliant, and governed end to end.