---
title: "Codeunit 82 Sales-Post + Print"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/82-sales-post-print/
type: codeunit
id: 82
name: "Sales-Post + Print"
app: "Base Application"
namespace: Microsoft.Sales.Posting
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/82-sales-post-print/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 82 Sales-Post + Print

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/82-sales-post-print/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Sales.Posting |
| Versions | 17-28 |
| Source file | Sales/Posting/SalesPostPrint.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| PostAndEmail | (var Record Sales Header) | - | public | 17-28 | - | - |
| GetReport | (var Record Sales Header) | - | public | 17-28 | - | - |
| ConfirmationMessage | () | Text | public | 19-24 | Pending 22.0 | Replaced by new implementation in Posting Selection Management codeunit |
| PrintReceive | (Record Sales Header) | - | public | 19-24 | - | - |
| PrintInvoice | (Record Sales Header) | - | public | 19-24 | - | - |
| PrintShip | (Record Sales Header) | - | public | 19-24 | - | - |
| PrintCrMemo | (Record Sales Header) | - | public | 19-24 | - | - |
| PrintReceive | (var Record Sales Header) | - | public | 25-28 | - | - |
| PrintInvoice | (var Record Sales Header) | - | public | 25-28 | - | - |
| PrintShip | (var Record Sales Header) | - | public | 25-28 | - | - |
| PrintCrMemo | (var Record Sales Header) | - | public | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterPost | (var Record Sales Header) | 17-28 | - | - |
| Integration event | OnAfterConfirmPost | (var Record Sales Header) | 17-25 | - | - |
| Integration event | OnBeforeConfirmPost | (var Record Sales Header, var Boolean, var Boolean, var Boolean, var Integer) | 17-28 | - | - |
| Integration event | OnBeforeConfirmPostProcedure | (var Record Sales Header, var Integer, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeGetReport | (var Record Sales Header, var Boolean, Boolean) | 17-28 | - | - |
| Integration event | OnBeforeOnRun | (var Record Sales Header) | 17-28 | - | - |
| Integration event | OnBeforePrintInvoice | (var Record Sales Header, Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforePrintCrMemo | (var Record Sales Header, Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforePrintReceive | (var Record Sales Header, Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforePrintShip | (var Record Sales Header, Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeRunSalesPost | (var Record Sales Header, var Boolean) | 17-28 | - | - |
| Integration event | OnPrintInvoiceOnAfterSetSalesInvHeaderFilter | (var Record Sales Header, var Record Sales Invoice Header, Boolean) | 22-28 | - | - |
| Integration event | OnAfterGetReport | (var Record Sales Header, Boolean) | 23-28 | - | - |
| Integration event | OnAfterConfirmPost | (var Record Sales Header, 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.
