---
title: "Codeunit 225 Gen. Jnl.-Apply"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/
type: codeunit
id: 225
name: "Gen. Jnl.-Apply"
app: "Base Application"
namespace: Microsoft.Finance.ReceivablesPayables
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/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 225 Gen. Jnl.-Apply

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/225-gen-jnl-apply/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Finance.ReceivablesPayables |
| Versions | 17-28 |
| Source file | Finance/ReceivablesPayables/GenJnlApply.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CheckAgainstApplnCurrency | (Code[10], Code[10], Enum Gen. Journal Account Type, Boolean) | Boolean | public | 17-28 | - | - |
| GetEntrySelected | () | Boolean | public | 17-28 | - | - |
| SetVendApplIdAPI | (Record Gen. Journal Line, Record Vendor Ledger Entry) | - | public | 18-28 | - | - |
| ApplyVendorLedgerEntryAPI | (var Record Gen. Journal Line) | - | public | 18-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterRun | (var Record Gen. Journal Line) | 17-28 | - | - |
| Integration event | OnAfterCustLedgEntrySetFilters | (var Record Cust. Ledger Entry, Record Gen. Journal Line, Code[20]) | 17-24 | - | - |
| Integration event | OnAfterVendLedgEntrySetFilters | (var Record Vendor Ledger Entry, Record Gen. Journal Line, Code[20]) | 17-28 | - | - |
| Integration event | OnAfterApplyEmployeeLedgerEntry | (var Record Gen. Journal Line, Record Employee Ledger Entry) | 17-28 | - | - |
| Integration event | OnAfterSelectCustLedgEntry | (var Record Gen. Journal Line, var Code[20], var Boolean) | 17-28 | - | - |
| Integration event | OnAfterSelectEmplLedgEntry | (var Record Gen. Journal Line, var Code[20], var Boolean) | 17-28 | - | - |
| Integration event | OnAfterSelectVendLedgEntry | (var Record Gen. Journal Line, var Code[20], var Boolean) | 17-28 | - | - |
| Integration event | OnApplyCustomerLedgerEntryOnBeforeCheckAgainstApplnCurrency | (var Record Gen. Journal Line, Record Cust. Ledger Entry) | 17-28 | - | - |
| Integration event | OnApplyCustomerLedgerEntryOnBeforeModify | (var Record Gen. Journal Line, Record Cust. Ledger Entry) | 17-28 | - | - |
| Integration event | OnApplyVendorLedgerEntryOnBeforeCheckAgainstApplnCurrency | (var Record Gen. Journal Line, Record Vendor Ledger Entry) | 17-28 | - | - |
| Integration event | OnApplyEmployeeLedgerEntryOnBeforeUpdateAmount | (var Record Gen. Journal Line, Record Employee Ledger Entry) | 17-28 | - | - |
| Integration event | OnBeforeRun | (var Record Gen. Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeFindCustApply | (Record Gen. Journal Line, Record Cust. Ledger Entry, var Decimal, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeFindVendApply | (Record Gen. Journal Line, Record Vendor Ledger Entry, var Decimal, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeSelectCustLedgEntry | (var Record Gen. Journal Line, var Code[20], var Boolean, var Boolean) | 17-23 | - | - |
| Integration event | OnBeforeSelectEmplLedgEntry | (var Record Gen. Journal Line, var Code[20], var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeSelectVendLedgEntry | (var Record Gen. Journal Line, var Code[20], var Boolean, var Boolean) | 17-23 | - | - |
| Integration event | OnSelectCustLedgEntryOnAfterSetFilters | (var Record Cust. Ledger Entry, Record Gen. Journal Line) | 17-20 | - | - |
| Integration event | OnSelectEmplLedgEntryOnAfterSetFilters | (var Record Employee Ledger Entry, Record Gen. Journal Line) | 17-20 | - | - |
| Integration event | OnSelectVendLedgEntryOnAfterSetFilters | (var Record Vendor Ledger Entry, Record Gen. Journal Line) | 17-20 | - | - |
| Integration event | OnApplyVendorLedgerEntryOnBeforeModify | (var Record Gen. Journal Line, Record Vendor Ledger Entry) | 19-20 | - | - |
| Integration event | OnBeforeCheckAgainstApplnCurrency | (var Code[10], var Code[10]) | 19-28 | - | - |
| Integration event | OnApplyVendorLedgerEntryOnBeforeModify | (var Record Gen. Journal Line, Record Vendor Ledger Entry, Record Vendor Ledger Entry) | 21-28 | - | - |
| Integration event | OnSelectCustLedgEntryOnAfterSetFilters | (var Record Cust. Ledger Entry, var Record Gen. Journal Line) | 21-28 | - | - |
| Integration event | OnSelectEmplLedgEntryOnAfterSetFilters | (var Record Employee Ledger Entry, var Record Gen. Journal Line) | 21-28 | - | - |
| Integration event | OnSelectVendLedgEntryOnAfterSetFilters | (var Record Vendor Ledger Entry, var Record Gen. Journal Line) | 21-28 | - | - |
| Integration event | OnApplyVendorLedgerEntryOnBeforeConfirmUpdateCurrency | (var Record Gen. Journal Line, Code[10], var Boolean) | 22-28 | - | - |
| Integration event | OnApplyCustomerLedgerEntryOnBeforeConfirmUpdateCurrency | (var Record Gen. Journal Line, Code[10], var Boolean) | 22-28 | - | - |
| Integration event | OnApplyCustomerLedgerEntryOnBeforeCheckAgainstApplnCurrencyCustomerAmountNotZero | (Record Gen. Journal Line, Record Cust. Ledger Entry) | 22-28 | - | - |
| Integration event | OnApplyCustomerLedgerEntryOnBeforeCheckAgainstApplnCurrencyCustomer | (Record Gen. Journal Line, Record Cust. Ledger Entry) | 22-28 | - | - |
| Integration event | OnSetVendApplIdAPIOnBeforeCheckAgainstApplnCurrency | (Record Gen. Journal Line, Record Vendor Ledger Entry) | 22-28 | - | - |
| Integration event | OnApplyVendorLedgerEntryAPIOnBeforeCheckAgainstApplnCurrencyAmountZero | (Record Gen. Journal Line, Record Vendor Ledger Entry) | 22-28 | - | - |
| Integration event | OnApplyVendorLedgerEntryAPIOnBeforeCheckAgainstApplnCurrencyAmountNonZero | (Record Gen. Journal Line, Record Vendor Ledger Entry) | 22-28 | - | - |
| Integration event | OnApplyVendorLedgerEntryAPIOnBeforeCheckAgainstApplnCurrencyDifferentCurrenciesAmountNonZero | (Record Gen. Journal Line, Record Vendor Ledger Entry) | 22-28 | - | - |
| Integration event | OnApplyVendorLedgerEntryOnBeforeCheckAgainstApplnCurrencyAmountNotZero | (Record Gen. Journal Line, Record Vendor Ledger Entry) | 22-28 | - | - |
| Integration event | OnApplyVendorLedgerEntryOnBeforeCheckAgainstApplnCurrencyDifferentCurrenciesAmountNotZero | (Record Gen. Journal Line, Record Vendor Ledger Entry) | 22-28 | - | - |
| Integration event | OnApplyCustomerLedgerEntryOnAfterSetCustomerAppliesToDocNo | (var Record Gen. Journal Line, Record Cust. Ledger Entry) | 23 | - | - |
| Integration event | OnApplyVendorLedgerEntryOnAfterSetVendorAppliesToDocNo | (var Record Gen. Journal Line, Record Vendor Ledger Entry) | 23-28 | - | - |
| Integration event | OnBeforeSelectCustLedgEntry | (var Record Gen. Journal Line, var Code[20], var Boolean, var Boolean, var Code[50]) | 24-28 | - | - |
| Integration event | OnBeforeSelectVendLedgEntry | (var Record Gen. Journal Line, var Code[20], var Boolean, var Boolean, var Code[50]) | 24-28 | - | - |
| Integration event | OnApplyVendorLedgerEntryOnAfterSetGenJnlLineAppliesToDocNo | (var Record Gen. Journal Line, var Record Vendor Ledger Entry) | 24-28 | - | - |
| Integration event | OnApplyCustomerLedgerEntryOnAfterSetCustomerAppliesToDocNo | (var Record Gen. Journal Line, var Record Cust. Ledger Entry) | 24-28 | - | - |
| Integration event | OnBeforeUpdateCustLedgEntry | (var Record Cust. Ledger Entry, Record Gen. Journal Line, var Boolean) | 24-28 | - | - |
| Integration event | OnBeforeUpdateVendLedgEntry | (var Record Vendor Ledger Entry, Record Gen. Journal Line, var Boolean) | 24-28 | - | - |
| Integration event | OnAfterUpdateVendLedgEntry | (var Record Gen. Journal Line, var Record Vendor Ledger Entry) | 24-28 | - | - |
| Integration event | OnApplyVendorLedgerEntryAPIOnBeforeValidateAmount | (var Record Gen. Journal Line) | 24-28 | - | - |
| Integration event | OnApplyVendorLedgerEntryOnBeforeValidateAmount | (var Record Gen. Journal Line) | 24 | - | - |
| Integration event | OnSetVendApplIdAPIOnBeforeCheckPostingDate | (var Record Vendor Ledger Entry, var Record Gen. Journal Line, var Record Vendor Ledger Entry) | 24-28 | - | - |
| Integration event | OnAfterCustLedgEntrySetFilters | (var Record Cust. Ledger Entry, Record Gen. Journal Line, Code[20], var Code[50], var Boolean) | 25 | - | - |
| Integration event | OnApplyCustomerLedgerEntryOnAfterValidateAmount | (var Record Gen. Journal Line, var Record Cust. Ledger Entry) | 25-28 | - | - |
| Integration event | OnApplyVendorLedgerEntryOnBeforeValidateAmount | (var Record Gen. Journal Line, var Record Vendor Ledger Entry) | 25-28 | - | - |
| Integration event | OnCalcAppliedAmountOnCustLedgerEntryOnAfterCalcRemainingAmount | (var Record Cust. Ledger Entry) | 25-28 | - | - |
| Integration event | OnAfterCustLedgEntrySetFilters | (var Record Cust. Ledger Entry, var Record Gen. Journal Line, Code[20], var Code[50], var Boolean) | 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.
