---
title: "Codeunit 20 Posting Preview Event Handler"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/20-posting-preview-event-handler/
type: codeunit
id: 20
name: "Posting Preview Event Handler"
app: "Base Application"
namespace: Microsoft.Finance.GeneralLedger.Preview
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/20-posting-preview-event-handler/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 20 Posting Preview Event Handler

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/20-posting-preview-event-handler/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Finance.GeneralLedger.Preview |
| Versions | 17-28 |
| Source file | Finance/GeneralLedger/Preview/PostingPreviewEventHandler.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetEntries | (Integer, var RecordRef) | - | public | 17-28 | - | - |
| ShowEntries | (Integer) | - | public | 17-28 | - | - |
| FillDocumentEntry | (var Record Document Entry) | - | public | 17-28 | - | - |
| InsertDocumentEntry | (Variant, var Record Document Entry) | - | public | 17-28 | - | - |
| PreventCommit | () | - | public | 17-28 | - | - |
| IsTransactionConsistent | () | Boolean | public | 19-28 | - | - |
| SetShowDocumentNo | (Boolean) | - | public | 19-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterFillDocumentEntry | (var Record Document Entry) | 17-28 | - | - |
| Integration event | OnGetEntries | (Integer, var RecordRef) | 17-28 | - | - |
| Integration event | OnAfterShowEntries | (Integer) | 17-28 | - | - |
| Integration event | OnBeforeModifyTempGLEntry | (var Record G/L Entry, var Record G/L Entry) | 18-28 | - | - |
| Integration event | OnBeforeModifyTempCustLedgEntry | (var Record Cust. Ledger Entry, var Record Cust. Ledger Entry) | 18-28 | - | - |
| Integration event | OnBeforeModifyTempDtldCustLedgEntry | (var Record Detailed Cust. Ledg. Entry, var Record Detailed Cust. Ledg. Entry) | 18-28 | - | - |
| Integration event | OnBeforeModifyTempVendLedgEntry | (var Record Vendor Ledger Entry, var Record Vendor Ledger Entry) | 18-28 | - | - |
| Integration event | OnBeforeModifyTempDtldVendLedgEntry | (var Record Detailed Vendor Ledg. Entry, var Record Detailed Vendor Ledg. Entry) | 18-28 | - | - |
| Integration event | OnBeforeModifyTempVATEntry | (var Record VAT Entry, var Record VAT Entry) | 26-28 | - | - |
| Integration event | OnBeforeModifyTempValueEntry | (var Record Value Entry, var Record Value Entry) | 26-28 | - | - |
| Integration event | OnBeforeModifyTempItemLedgerEntry | (var Record Item Ledger Entry, var Record Item Ledger Entry) | 26-28 | - | - |
| Integration event | OnBeforeModifyTempFALedgEntry | (var Record FA Ledger Entry, var Record FA Ledger Entry) | 26-28 | - | - |
| Integration event | OnBeforeModifyTempEmplLedgEntry | (var Record Employee Ledger Entry, var Record Employee Ledger Entry) | 26-28 | - | - |
| Integration event | OnBeforeModifyTempBankAccLedgerEntry | (var Record Bank Account Ledger Entry, var Record Bank Account Ledger Entry) | 26-28 | - | - |
| Integration event | OnBeforeModifyTempResLedgerEntry | (var Record Res. Ledger Entry, var Record Res. Ledger Entry) | 26-28 | - | - |
| Integration event | OnBeforeModifyTempMaintenanceLedgerEntry | (var Record Maintenance Ledger Entry, var Record Maintenance Ledger Entry) | 26-28 | - | - |
| Integration event | OnBeforeModifyTempJobLedgerEntry | (var Record Job Ledger Entry, var Record Job Ledger Entry) | 26-28 | - | - |
| Integration event | OnBeforeModifyTempExchRateAdjmtLedgEntry | (var Record Exch. Rate Adjmt. Ledg. Entry, var Record Exch. Rate Adjmt. Ledg. Entry) | 26-28 | - | - |
| Integration event | OnBeforeModifyTempWarehouseEntry | (var Record Warehouse Entry, var Record Warehouse Entry) | 26-28 | - | - |
| Integration event | OnBeforeModifyTempPhysInventoryLedgerEntry | (var Record Phys. Inventory Ledger Entry, var Record Phys. Inventory Ledger Entry) | 26-28 | - | - |
| Integration event | OnBeforeModifyTempDtldEmplLedgEntry | (var Record Detailed Employee Ledger Entry, var Record Detailed 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.
