---
title: "Codeunit 99 Posting Selection Management"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/99-posting-selection-management/
type: codeunit
id: 99
name: "Posting Selection Management"
app: "Base Application"
namespace: Microsoft.Finance.ReceivablesPayables
versions: "22-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/99-posting-selection-management/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 99 Posting Selection Management

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/99-posting-selection-management/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| ConfirmPostSalesDocument | (var Record Sales Header, Integer, Boolean, Boolean) | Boolean | public | 22-28 | - | - |
| ConfirmPostPurchaseDocument | (var Record Purchase Header, Integer, Boolean, Boolean) | Boolean | public | 22-28 | - | - |
| ConfirmPostWarehouseActivity | (var Record Warehouse Activity Line, var Integer, Integer, Boolean) | Boolean | public | 22-28 | - | - |
| ConfirmPostWhseShipment | (var Record Warehouse Shipment Line, var Integer) | Boolean | public | 22-28 | - | - |
| CheckUserCanInvoiceSales | () | - | public | 22-28 | - | - |
| CheckUserCanInvoicePurchase | () | - | public | 22-28 | - | - |
| IsPostingInvoiceMandatoryPurchase | () | Boolean | internal | 23-28 | - | - |
| ConfirmPostServiceDocument | (var Record Service Header, var Boolean, var Boolean, var Boolean, Integer, Boolean, Boolean, Boolean) | Boolean | public | 24-27 | Pending 25.0 | Replaced by same procedure in codeunit Serv. Posting Selection Mgt. |
| CheckUserCanInvoiceService | () | - | public | 24-27 | Pending 25.0 | Replaced by same procedure in codeunit Serv. Posting Selection Mgt. |
| GetPostConfirmationMessage | (Text, Boolean, Boolean) | Text | public | 25-28 | - | - |
| GetPostConfirmationMessage | (Boolean, Boolean, Boolean) | Text | public | 25-28 | - | - |
| GetShipConfirmationMessage | () | Text | public | 25-28 | - | - |
| GetShipInvoiceConfirmationMessage | () | Text | public | 25-28 | - | - |
| GetReceiveConfirmationMessage | () | Text | public | 25-28 | - | - |
| GetPostingInvoiceProhibitedErr | () | Text | public | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnConfirmPostSalesDocumentOnBeforeSalesOrderGetSalesInvoicePostingPolicy | (var Record Sales Header) | 22 | - | - |
| Integration event | OnConfirmPostSalesDocumentOnBeforeSalesOrderReturnGetSalesInvoicePostingPolicy | (var Record Sales Header) | 22 | - | - |
| Integration event | OnBeforeGetShipInvoiceSelectionForWhseActivity | (Integer, var Integer, var Boolean, var Boolean) | 22-24 | - | - |
| Integration event | OnConfirmPostSalesDocumentOnBeforeSalesOrderGetSalesInvoicePostingPolicy | (var Record Sales Header, var Boolean) | 23-28 | - | - |
| Integration event | OnConfirmPostSalesDocumentOnBeforeSalesOrderReturnGetSalesInvoicePostingPolicy | (var Record Sales Header, var Boolean) | 23-28 | - | - |
| Integration event | OnConfirmPostPurchaseDocumentOnBeforePurchaseOrderGetPurchaseInvoicePostingPolicy | (var Record Purchase Header, var Boolean) | 23-28 | - | - |
| Integration event | OnConfirmPostPurchaseDocumentOnBeforePurchaseReturnOrderGetPurchaseInvoicePostingPolicy | (var Record Purchase Header, var Boolean) | 23-28 | - | - |
| Integration event | OnBeforeGetShipInvoiceSelectionForWhseActivity | (var Integer, var Integer, var Boolean, var Boolean) | 25-28 | - | - |
| Integration event | OnAfterGetInvoicePostingPolicy | (Enum Warehouse Activity Source Document, var Boolean, var Boolean) | 25-28 | - | - |
| Integration event | OnBeforeGetSalesOrderPostingSelection | (var Record Sales Header, Integer, var Boolean, var Integer) | 26-28 | - | - |
| Integration event | OnBeforeGetPurchaseOrderPostingSelection | (var Record Purchase Header, Integer, var Boolean, var Integer) | 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.
