---
title: "Codeunit 227 VendEntry-Apply Posted Entries"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/227-vendentry-apply-posted-entries/
type: codeunit
id: 227
name: "VendEntry-Apply Posted Entries"
app: "Base Application"
namespace: Microsoft.Purchases.Payables
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/227-vendentry-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 227 VendEntry-Apply Posted Entries

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

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Apply | (Record Vendor Ledger Entry, Code[20], Date) | Boolean | public | 17-22 | Pending 20.0 | Replaced by Apply(VendLedgEntry, ApplyUnapplyParameters) |
| GetApplicationDate | (Record Vendor Ledger Entry) | Date | public | 17-28 | - | - |
| FindLastApplEntry | (Integer) | Integer | public | 17-28 | - | - |
| UnApplyDtldVendLedgEntry | (Record Detailed Vendor Ledg. Entry) | - | public | 17-28 | - | - |
| UnApplyVendLedgEntry | (Integer) | - | public | 17-28 | - | - |
| PostUnApplyVendor | (Record Detailed Vendor Ledg. Entry, Code[20], Date) | - | public | 17-22 | Pending 20.0 | Replaced by PostUnApplyVendor(DtldVendLedgEntry2; ApplyUnapplyParameters |
| CheckReversal | (Integer) | - | public | 17-28 | - | - |
| ApplyVendEntryFormEntry | (var Record Vendor Ledger Entry) | - | public | 17-28 | - | - |
| PreviewApply | (Record Vendor Ledger Entry, Code[20], Date) | - | public | 17-22 | Pending 20.0 | Replaced by PreviewApply(VendorLedgerEntry; ApplyUnapplyParameters) |
| PreviewUnapply | (Record Detailed Vendor Ledg. Entry, Code[20], Date) | - | public | 17-22 | Pending 20.0 | Replaced by W1 implementation of PreviewUnapply(DetailedVendorLedgEntry; ApplyUnapplyParameters) |
| SetApplyContext | (Date, Code[20]) | - | public | 17-22 | Pending 20.0 | Replaced by SetApplyContext(ApplyUnapplyParameters) |
| SetUnapplyContext | (var Record Detailed Vendor Ledg. Entry, Date, Code[20]) | - | public | 17-22 | Pending 20.0 | Replaced by SetUnapplyContext(DetailedVendorLedgEntry; ApplyUnapplyParameters) |
| Apply | (Record Vendor Ledger Entry, Record Apply Unapply Parameters) | Boolean | public | 20-28 | - | - |
| PostUnApplyVendor | (Record Detailed Vendor Ledg. Entry, Record Apply Unapply Parameters) | - | public | 20-28 | - | - |
| PostUnApplyVendorCommit | (Record Detailed Vendor Ledg. Entry, Code[20], Date, Boolean) | - | public | 20-22 | Pending 20.0 | Replaced by PostUnApplyVendorCommit() |
| PostUnApplyVendorCommit | (Record Detailed Vendor Ledg. Entry, Record Apply Unapply Parameters, Boolean) | - | public | 20-28 | - | - |
| PreviewApply | (Record Vendor Ledger Entry, Record Apply Unapply Parameters) | - | public | 20-28 | - | - |
| PreviewUnapply | (Record Detailed Vendor Ledg. Entry, Record Apply Unapply Parameters) | - | public | 20-28 | - | - |
| SetApplyContext | (Record Apply Unapply Parameters) | - | public | 20-28 | - | - |
| SetUnapplyContext | (var Record Detailed Vendor Ledg. Entry, Record Apply Unapply Parameters) | - | public | 20-28 | - | - |
| GetAppliedVendLedgerEntries | (var Record Vendor Ledger Entry, Integer) | - | public | 20-28 | - | - |
| CheckVendorLedgerEntryToUnapply | (Integer, var Record Detailed Vendor Ledg. Entry) | - | public | 21-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCheckReversal | (Record Vendor Ledger Entry) | 17-28 | - | - |
| Integration event | OnAfterPostApplyVendLedgEntry | (Record Gen. Journal Line, Record Vendor Ledger Entry, var Codeunit Gen. Jnl.-Post Line) | 17-28 | - | - |
| Integration event | OnAfterPostUnapplyVendLedgEntry | (Record Gen. Journal Line, Record Vendor Ledger Entry, Record Detailed Vendor Ledg. Entry, var Codeunit Gen. Jnl.-Post Line) | 17 | - | - |
| Integration event | OnApplyVendEntryFormEntryOnAfterVendLedgEntrySetFilters | (var Record Vendor Ledger Entry, var Record Vendor Ledger Entry) | 17-19 | - | - |
| Integration event | OnBeforeApply | (var Record Vendor Ledger Entry, var Code[20], var Date) | 17-28 | - | - |
| Integration event | OnBeforeApplyVendEntryFormEntry | (var Record Vendor Ledger Entry, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeGetApplicationDate | (Record Vendor Ledger Entry, var Date, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforePostApplyVendLedgEntry | (var Record Gen. Journal Line, Record Vendor Ledger Entry, var Codeunit Gen. Jnl.-Post Line) | 17-21 | - | - |
| Integration event | OnBeforePostUnapplyVendLedgEntry | (var Record Gen. Journal Line, Record Vendor Ledger Entry, Record Detailed Vendor Ledg. Entry, var Codeunit Gen. Jnl.-Post Line) | 17-21 | - | - |
| Integration event | OnBeforeRunUpdateAnalysisView | (var Boolean) | 17-28 | - | - |
| Integration event | OnGetApplicationDateOnAfterSetFilters | (var Record Vendor Ledger Entry, Record Vendor Ledger Entry) | 17-28 | - | - |
| Integration event | OnCheckunappliedEntriesOnBeforeUnapplyAllEntriesError | (Record Detailed Vendor Ledg. Entry, Integer, var Boolean) | 17-19 | - | - |
| Integration event | OnBeforeUnApplyVendor | (Record Detailed Vendor Ledg. Entry) | 17-22 | - | - |
| Integration event | OnPostUnApplyVendorOnAfterDtldVendLedgEntrySetFilters | (var Record Detailed Vendor Ledg. Entry, Record Detailed Vendor Ledg. Entry) | 17-28 | - | - |
| Integration event | OnPostUnApplyVendorOnAfterGetVendLedgEntry | (var Record Vendor Ledger Entry) | 17-28 | - | - |
| Integration event | OnAfterPostUnapplyVendLedgEntry | (Record Gen. Journal Line, Record Vendor Ledger Entry, Record Detailed Vendor Ledg. Entry, var Codeunit Gen. Jnl.-Post Line, var Record Vendor Ledger Entry) | 18-28 | - | - |
| Integration event | OnCollectAffectedLedgerEntriesOnAfterSetFilters | (var Record Detailed Vendor Ledg. Entry, Record Detailed Vendor Ledg. Entry) | 18-28 | - | - |
| Integration event | OnApplyVendEntryFormEntryOnBeforeRunVendEntryEdit | (var Record Vendor Ledger Entry) | 19-28 | - | - |
| Integration event | OnBeforeVendPostApplyVendLedgEntry | (var Boolean, Record Vendor Ledger Entry, var Boolean) | 19-28 | - | - |
| Integration event | OnBeforeRunVendExchRateAdjustment | (var Record Gen. Journal Line, var Record Vendor Ledger Entry, var Boolean) | 19-28 | - | - |
| Integration event | OnVendPostApplyVendLedgEntryOnBeforeCommit | (var Record Vendor Ledger Entry, var Boolean) | 19-28 | - | - |
| Integration event | OnAfterUnApplyVendor | (Record Detailed Vendor Ledg. Entry) | 20-28 | - | - |
| Integration event | OnApplyVendEntryFormEntryOnAfterCheckEntryOpen | (Record Vendor Ledger Entry) | 20-28 | - | - |
| Integration event | OnApplyVendEntryFormEntryOnAfterVendLedgEntrySetFilters | (var Record Vendor Ledger Entry, var Record Vendor Ledger Entry, var Boolean) | 20-23 | - | - |
| Integration event | OnFindLastApplEntryOnAfterSetFilters | (var Record Detailed Vendor Ledg. Entry) | 20-28 | - | - |
| Integration event | OnBeforePostUnApplyVendorCommit | (var Boolean, Boolean, Record Detailed Vendor Ledg. Entry, Code[20], Date, Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnCheckUnappliedEntriesOnBeforeUnapplyAllEntriesError | (Record Detailed Vendor Ledg. Entry, Integer, var Boolean) | 20-28 | - | - |
| Integration event | OnApplyOnBeforePmtTolVend | (Record Vendor Ledger Entry, var Codeunit Payment Tolerance Management, Boolean, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforePostApplyVendLedgEntry | (var Record Gen. Journal Line, Record Vendor Ledger Entry, var Codeunit Gen. Jnl.-Post Line, Record Apply Unapply Parameters) | 22-28 | - | - |
| Integration event | OnBeforePostUnapplyVendLedgEntry | (var Record Gen. Journal Line, Record Vendor Ledger Entry, Record Detailed Vendor Ledg. Entry, var Codeunit Gen. Jnl.-Post Line, Record Apply Unapply Parameters) | 22-28 | - | - |
| Integration event | OnPostUnApplyVendorCommitOnBeforeFilterDtldVendLedgEntry | (Record Detailed Vendor Ledg. Entry, Record Apply Unapply Parameters) | 22-28 | - | - |
| Integration event | OnApplyOnBeforeVendPostApplyVendLedgEntry | (Record Vendor Ledger Entry, var Record Apply Unapply Parameters) | 22-28 | - | - |
| Integration event | OnBeforeUnApplyVendor | (Record Detailed Vendor Ledg. Entry, var Boolean) | 23-28 | - | - |
| Integration event | OnApplyVendEntryFormEntryOnAfterVendLedgEntrySetFilters | (var Record Vendor Ledger Entry, var Record Vendor Ledger Entry, var Boolean, var Code[50]) | 24-28 | - | - |
| Integration event | OnApplyOnBeforePostingDateMustNotBeBeforeError | (var Record Apply Unapply Parameters, var Record Vendor Ledger Entry, Boolean, var Boolean) | 24-28 | - | - |
| Integration event | OnPostUnApplyVendorCommitOnBeforePostingDateMustNotBeBeforeError | (var Record Apply Unapply Parameters, var Record Detailed Vendor Ledg. Entry, Boolean, var Boolean) | 24-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.
