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

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/19-gen-jnl-post-preview/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Preview | (Variant, Variant) | - | public | 17-28 | - | - |
| GetPreviewHandler | (var Codeunit Posting Preview Event Handler) | - | public | 17-28 | - | - |
| IsActive | () | Boolean | public | 17-28 | - | - |
| IsSuccess | () | Boolean | public | 17-28 | - | - |
| SetContext | (Variant, Variant) | - | public | 17-28 | - | - |
| ShowDimensions | (Integer, Integer, Integer) | - | public | 17-28 | - | - |
| ThrowError | () | - | public | 17-28 | - | - |
| MessageIfPostingPreviewMultipleDocuments | (RecordRef, Code[20]) | - | public | 24-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnRunPreview | (var Boolean, Variant, Variant) | 17-28 | - | - |
| Integration event | OnAfterBindSubscription | (var Codeunit Posting Preview Event Handler) | 17-28 | - | - |
| Integration event | OnAfterUnbindSubscription | () | 17-28 | - | - |
| Integration event | OnSystemSetPostingPreviewActive | (var Boolean) | 17-28 | - | - |
| Integration event | OnAfterIsActive | (var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeShowAllEntries | (var Record Document Entry, var Boolean) | 17-18 | - | - |
| Integration event | OnBeforeThrowError | () | 17-28 | - | - |
| Integration event | OnAfterShowAllEntries | () | 17-28 | - | - |
| Integration event | OnBeforeRunPreview | (Variant, Variant) | 18-28 | - | - |
| Integration event | OnBeforeShowAllEntries | (var Record Document Entry, var Boolean, var Codeunit Posting Preview Event Handler) | 19-28 | - | - |
| Integration event | OnShowAllEntriesOnCaseElse | (var Record Document Entry, var Codeunit Posting Preview Event Handler) | 19-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.
