---
title: "Codeunit 224 EmplEntry-Apply Posted Entries"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/224-emplentry-apply-posted-entries/
type: codeunit
id: 224
name: "EmplEntry-Apply Posted Entries"
app: "Base Application"
namespace: Microsoft.HumanResources.Payables
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/224-emplentry-apply-posted-entries/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 224 EmplEntry-Apply Posted Entries

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/224-emplentry-apply-posted-entries/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.HumanResources.Payables |
| Versions | 17-28 |
| Source file | HumanResources/Payables/EmplEntryApplyPostedEntries.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Apply | (Record Employee Ledger Entry, Code[20], Date) | - | public | 17-22 | Pending 20.0 | Replaced by Apply(EmplLedgEntry; ApplyUnapplyParameters) |
| GetApplicationDate | (Record Employee Ledger Entry) | Date | public | 17-28 | - | - |
| UnApplyDtldEmplLedgEntry | (Record Detailed Employee Ledger Entry) | - | public | 17-28 | - | - |
| UnApplyEmplLedgEntry | (Integer) | - | public | 17-28 | - | - |
| PostUnApplyEmployee | (Record Detailed Employee Ledger Entry, Code[20], Date) | - | public | 17-22 | Pending 20.0 | Replaced by PostUnApplyEmployee(DtldCustLedgEntry2; ApplyUnapplyParameters) |
| ApplyEmplEntryFormEntry | (var Record Employee Ledger Entry) | - | public | 17-28 | - | - |
| PreviewApply | (Record Employee Ledger Entry, Code[20], Date) | - | public | 17-22 | Pending 20.0 | Replaced by PreviewApply(EmployeeLedgerEntry, ApplyUnapplyParameters) |
| PreviewUnapply | (Record Detailed Employee Ledger Entry, Code[20], Date) | - | public | 17-22 | Pending 20.0 | Replaced by PreviewUnapply(DetailedEmployeeLedgEntry, ApplyUnapplyParameters) |
| SetApplyContext | (Date, Code[20]) | - | public | 17-22 | Pending 20.0 | Replaced by SetApplyContext(ApplyUnapplyParameters) |
| SetUnapplyContext | (var Record Detailed Employee Ledger Entry, Date, Code[20]) | - | public | 17-22 | Pending 20.0 | Replaced by SetUnapplyContext(DetailedEmployeeLedgEntry; ApplyUnapplyParameters) |
| Apply | (Record Employee Ledger Entry, Record Apply Unapply Parameters) | - | public | 20-28 | - | - |
| PostUnApplyEmployee | (Record Detailed Employee Ledger Entry, Record Apply Unapply Parameters) | - | public | 20-28 | - | - |
| PreviewApply | (Record Employee Ledger Entry, Record Apply Unapply Parameters) | - | public | 20-28 | - | - |
| PreviewUnapply | (Record Detailed Employee Ledger Entry, Record Apply Unapply Parameters) | - | public | 20-28 | - | - |
| SetApplyContext | (Record Apply Unapply Parameters) | - | public | 20-28 | - | - |
| SetUnapplyContext | (var Record Detailed Employee Ledger Entry, Record Apply Unapply Parameters) | - | public | 20-28 | - | - |
| FindLastApplEntry | (Integer) | Integer | public | 21-28 | - | - |
| CheckEmployeeLedgerEntryToUnapply | (Integer, var Record Detailed Employee Ledger Entry) | - | public | 21-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeApply | (var Record Employee Ledger Entry, var Code[20], var Date) | 17-28 | - | - |
| Integration event | OnEmplPostApplyEmplLedgEntryOnBeforeGenJnlPostLine | (var Record Gen. Journal Line, Record Employee Ledger Entry) | 17-28 | - | - |
| Integration event | OnPostUnApplyEmployeeOnAfterCheckMaxDateCompressed | (var Record Detailed Employee Ledger Entry) | 17-28 | - | - |
| Integration event | OnPostUnApplyEmployeeOnAfterGetEmplLedgEntry | (var Record Detailed Employee Ledger Entry, var Record Employee Ledger Entry) | 17-28 | - | - |
| Integration event | OnPostUnApplyEmployeeOnBeforeGenJnlPostLineUnapplyEmplLedgEntry | (var Record Gen. Journal Line, Record Employee Ledger Entry, Record Detailed Employee Ledger Entry, var Codeunit Gen. Jnl.-Post Line) | 17-28 | - | - |
| Integration event | OnFindLastTransactionNoOnAfterSetFilters | (var Record Detailed Employee Ledger Entry) | 22-28 | - | - |
| Integration event | OnCollectAffectedLedgerEntriesOnAfterSetFilters | (var Record Detailed Employee Ledger Entry, Record Detailed Employee Ledger Entry) | 24-28 | - | - |
| Integration event | OnBeforeRunEmplExchRateAdjustment | (var Record Gen. Journal Line, var Record Employee Ledger Entry, var Boolean) | 24-28 | - | - |
| Integration event | OnPostUnApplyEmployeeOnAfterRunEmployeeExchRateAdjustment | (Record Gen. Journal Line, Record Employee Ledger Entry, Record Detailed Employee Ledger Entry, var Codeunit Gen. Jnl.-Post Line, var Record Employee Ledger Entry) | 26-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
