---
title: "Codeunit 7324 Whse.-Activity-Post"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/7324-whse-activity-post/
type: codeunit
id: 7324
name: "Whse.-Activity-Post"
app: "Base Application"
namespace: Microsoft.Warehouse.Activity
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/7324-whse-activity-post/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 7324 Whse.-Activity-Post

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/7324-whse-activity-post/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Warehouse.Activity |
| Versions | 17-28 |
| Source file | Warehouse/Activity/WhseActivityPost.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| ShowHideDialog | (Boolean) | - | public | 17-28 | - | - |
| SetInvoiceSourceDoc | (Boolean) | - | public | 17-28 | - | - |
| PrintDocument | (Boolean) | - | public | 17-28 | - | - |
| SetSuppressCommit | (Boolean) | - | public | 17-28 | - | - |
| CreateWhseJnlLine | (var Record Warehouse Journal Line, Record Warehouse Activity Line) | - | public | 20-28 | - | - |
| SetIsPreview | (Boolean) | - | public | 22-28 | - | - |
| GetLocation | (Code[10]) | - | public | 25-28 | - | - |
| RunOnPostConsumptionLineOnAfterCreateItemJnlLine | (var Record Item Journal Line, Record Prod. Order Line, Record Warehouse Activity Line, Record Source Code Setup) | - | internal | 27-28 | - | - |
| RunOnPostConsumptionLineOnAfterInitItemJournalLine | (var Record Item Journal Line, Record Source Code Setup) | - | internal | 27-28 | - | - |
| RunOnPostOutputLineOnAfterCreateItemJnlLine | (var Record Item Journal Line, Record Prod. Order Line, Record Warehouse Activity Line, Record Source Code Setup) | - | internal | 27-28 | - | - |
| RunOnPostOutputLineOnAfterItemJournalLineInit | (var Record Item Journal Line, Record Source Code Setup) | - | internal | 27-28 | - | - |
| RunOnBeforeCheckProdOrderLine | (var Record Prod. Order Line, var Boolean) | - | internal | 27-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCode | (var Record Warehouse Activity Line, var Boolean, Boolean) | 17-28 | - | - |
| Integration event | OnAfterInitSourceDocument | (var Record Warehouse Activity Header) | 17-28 | - | - |
| Integration event | OnAfterCreateWhseJnlLine | (var Record Warehouse Journal Line, Record Warehouse Activity Line) | 17-22 | - | - |
| Integration event | OnAfterSalesLineModify | (var Record Sales Line) | 17-28 | - | - |
| Integration event | OnAfterPostWhseActivHeader | (Record Warehouse Activity Header) | 17 | - | - |
| Integration event | OnAfterPostedInvtPickHeaderInsert | (var Record Posted Invt. Pick Header, Record Warehouse Activity Header) | 17-28 | - | - |
| Integration event | OnAfterPostedInvtPutAwayHeaderInsert | (var Record Posted Invt. Put-away Header, Record Warehouse Activity Header) | 17-28 | - | - |
| Integration event | OnAfterPostWhseActivityLine | (Record Warehouse Activity Header, var Record Warehouse Activity Line, Code[20], Integer, Integer) | 17-28 | - | - |
| Integration event | OnAfterPurchLineModify | (var Record Purchase Line) | 17-28 | - | - |
| Integration event | OnAfterTransLineModify | (var Record Transfer Line) | 17-28 | - | - |
| Integration event | OnAfterWhseActivLineModify | (var Record Warehouse Activity Line) | 17-28 | - | - |
| Integration event | OnCodeOnAfterCreatePostedWhseActivDocument | (var Record Warehouse Activity Header) | 17-28 | - | - |
| Integration event | OnBeforeCode | (var Record Warehouse Activity Line, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeInsertTempWhseActivLine | (var Record Warehouse Activity Line, Boolean) | 17-28 | - | - |
| Integration event | OnBeforeInitSourceDocument | (var Record Warehouse Activity Header) | 17-28 | - | - |
| Integration event | OnBeforeCheckLines | (var Record Warehouse Activity Header) | 17-28 | - | - |
| Integration event | OnBeforeCheckItemTracking | (var Record Warehouse Activity Line, var Boolean, var Boolean) | 17-18 | - | - |
| Integration event | OnBeforeGetPostingReference | (var Integer, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeModifyPurchaseHeader | (var Record Purchase Header, Record Warehouse Activity Header, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeModifyPurchaseLine | (var Record Purchase Line) | 17-28 | - | - |
| Integration event | OnBeforeModifySalesHeader | (var Record Sales Header, Record Warehouse Activity Header, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeModifySalesLine | (var Record Sales Line) | 17-28 | - | - |
| Integration event | OnBeforeModifyTransferHeader | (var Record Transfer Header, Record Warehouse Activity Header, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeModifyTransferLine | (var Record Transfer Line) | 17-28 | - | - |
| Integration event | OnBeforePostedInvtPickHeaderInsert | (var Record Posted Invt. Pick Header, Record Warehouse Activity Header) | 17-28 | - | - |
| Integration event | OnBeforePostedInvtPickLineInsert | (var Record Posted Invt. Pick Line, Record Warehouse Activity Line) | 17-28 | - | - |
| Integration event | OnBeforePostedInvtPutAwayHeaderInsert | (var Record Posted Invt. Put-away Header, Record Warehouse Activity Header) | 17-28 | - | - |
| Integration event | OnBeforePostedInvtPutAwayLineInsert | (var Record Posted Invt. Put-away Line, Record Warehouse Activity Line) | 17-28 | - | - |
| Integration event | OnBeforePostSourceDocument | (var Record Warehouse Activity Header, var Integer, var Code[20], var Integer) | 17-18 | - | - |
| Integration event | OnBeforePostWhseActivLine | (Record Warehouse Activity Header, var Record Warehouse Activity Line, var Code[20], var Integer, var Integer, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforePostWhseJnlLine | (var Record Warehouse Activity Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeUpdateSourceDocument | (var Record Warehouse Activity Line) | 17-28 | - | - |
| Integration event | OnBeforeTempWhseActivLineInsert | (var Record Warehouse Activity Line, Record Warehouse Activity Line) | 17-28 | - | - |
| Integration event | OnBeforeTempWhseActivLineModify | (var Record Warehouse Activity Line, Record Warehouse Activity Line) | 17-28 | - | - |
| Integration event | OnBeforeUnhandledTransLineModify | (var Record Transfer Line) | 17-28 | - | - |
| Integration event | OnBeforeWhseActivLineDelete | (Record Warehouse Activity Line, var Boolean) | 17-20 | - | - |
| Integration event | OnCodeOnAfterWhseActivLineSetFilters | (var Record Warehouse Activity Header, var Record Warehouse Activity Line) | 17-21 | - | - |
| Integration event | OnPostConsumptionLineOnAfterCreateItemJnlLine | (var Record Item Journal Line, Record Prod. Order Line, Record Warehouse Activity Line) | 17 | - | - |
| Integration event | OnPostOutputLineOnAfterCreateItemJnlLine | (var Record Item Journal Line, Record Prod. Order Line, Record Warehouse Activity Line) | 17 | - | - |
| Integration event | OnPostSourceDocumentOnBeforePurchPostRun | (Record Warehouse Activity Header, var Record Purchase Header) | 17-28 | - | - |
| Integration event | OnPostSourceDocumentOnBeforeSalesPostRun | (Record Warehouse Activity Header, var Record Sales Header) | 17-28 | - | - |
| Integration event | OnPostWhseActivityLineOnBeforePosting | (var Record Warehouse Activity Header, var Record Warehouse Activity Line, var Code[20], var Integer, var Integer, var Boolean) | 17-28 | - | - |
| Integration event | OnUpdateSourceDocumentOnAfterGetPurchLine | (var Record Purchase Line, Record Warehouse Activity Line) | 17-28 | - | - |
| Integration event | OnUpdateSourceDocumentOnAfterPurchLineModify | (var Record Purchase Line, Record Warehouse Activity Line) | 17-28 | - | - |
| Integration event | OnUpdateSourceDocumentOnAfterSalesLineModify | (var Record Sales Line, Record Warehouse Activity Line) | 17-28 | - | - |
| Integration event | OnUpdateSourceDocumentOnAfterTransLineModify | (var Record Transfer Line, Record Warehouse Activity Line) | 17-28 | - | - |
| Integration event | OnUpdateSourceDocumentOnAfterGetSalesLine | (var Record Sales Line, Record Warehouse Activity Line) | 17-28 | - | - |
| Integration event | OnAfterCheckWarehouseActivityLine | (Record Warehouse Activity Line, Record Warehouse Activity Header, Record Location) | 18 | - | - |
| Integration event | OnAfterPostWhseActivHeader | (Record Warehouse Activity Header, var Record Purchase Header, var Record Sales Header, var Record Transfer Header) | 18-28 | Pending 29.0 | Use OnAfterPostWhseActivityCompleted instead. This event fires before PostRelatedInboundTransfer completes. |
| Integration event | OnAfterPostSourceDocument | (Record Warehouse Activity Header, var Record Purchase Header, var Record Sales Header, var Record Transfer Header, Integer, Boolean) | 18-28 | - | - |
| Integration event | OnBeforeReleasePurchDocument | (var Record Purchase Header, Record Warehouse Activity Header, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeReleaseSalesDocument | (var Record Sales Header, Record Warehouse Activity Header, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnInitSourceDocumentOnBeforeSalesLineLoopIteration | (Record Sales Header, var Record Sales Line, Record Warehouse Activity Header, var Boolean) | 18-28 | - | - |
| Integration event | OnInitSourceDocumentOnAfterSetSalesLineFilters | (var Record Sales Line, Record Sales Header, Record Warehouse Activity Header) | 18-28 | - | - |
| Integration event | OnInitSourceDocumentOnAfterSetPurchaseLineFilters | (var Record Purchase Line, Record Purchase Header, Record Warehouse Activity Header) | 18-28 | - | - |
| Integration event | OnPostConsumptionLineOnAfterCreateItemJnlLine | (var Record Item Journal Line, Record Prod. Order Line, Record Warehouse Activity Line, Record Source Code Setup) | 18-28 | Pending 27.0 | Moved to codeunit MfgWhseActivityPost |
| Integration event | OnInitSourceDocumentOnAfterTransLineSetFilters | (var Record Transfer Line, Record Transfer Header, Record Warehouse Activity Header) | 18-28 | - | - |
| Integration event | OnPostOutputLineOnAfterCreateItemJnlLine | (var Record Item Journal Line, Record Prod. Order Line, Record Warehouse Activity Line, Record Source Code Setup) | 18-28 | Pending 27.0 | Moved to codeunit MfgWhseActivityPost |
| Integration event | OnAfterCheckWarehouseActivityLine | (var Record Warehouse Activity Line, Record Warehouse Activity Header, Record Location) | 19-28 | - | - |
| Integration event | OnAfterSetInvoiceSourceDoc | (var Boolean) | 19-28 | - | - |
| Integration event | OnBeforeCheckItemTracking | (var Record Warehouse Activity Line, var Boolean, var Boolean, Record Warehouse Activity Header) | 19-28 | - | - |
| Integration event | OnBeforePostSourceDocument | (var Record Warehouse Activity Header, var Integer, var Code[20], var Integer, Boolean, Boolean) | 19-28 | - | - |
| Integration event | OnBeforePostSourceDoc | (Record Warehouse Activity Header, Boolean, Boolean) | 19-28 | - | - |
| Integration event | OnInitSourceDocumentOnBeforePurchLineLoopIteration | (Record Purchase Header, var Record Purchase Line, Record Warehouse Activity Header, var Boolean) | 19-28 | - | - |
| Integration event | OnInitSourceDocumentOnAfterTransferLineLoopIteration | (var Record Transfer Line, Record Transfer Header, Record Warehouse Activity Header) | 19 | - | - |
| Integration event | OnPostSourceDocumentOnBeforeUpdateUnhandledTransLine | (var Record Transfer Header, Record Warehouse Activity Header, Integer, Boolean) | 19-28 | - | - |
| Integration event | OnInitSourceDocumentOnAfterTransferLineLoopIteration | (var Record Transfer Line, Record Transfer Header, Record Warehouse Activity Header, var Boolean) | 20-28 | - | - |
| Integration event | OnPostConsumptionLineOnAfterInitItemJournalLine | (var Record Item Journal Line, Record Source Code Setup) | 20-28 | Pending 27.0 | Moved to codeunit MfgWhseActivityPost |
| Integration event | OnReleasePurchDocumentOnAfterPurchReleaseRun | (Record Purchase Header, Record Warehouse Activity Header) | 20-28 | - | - |
| Integration event | OnReleasePurchDocumentOnBeforePurchReleaseRun | (var Record Purchase Header, Record Warehouse Activity Header) | 20-28 | - | - |
| Integration event | OnReleaseSalesDocumentOnAfterSalesReleaseRun | (Record Sales Header, Record Warehouse Activity Header) | 20-28 | - | - |
| Integration event | OnReleaseSalesDocumentOnBeforeSalesReleaseRun | (var Record Sales Header, Record Warehouse Activity Header) | 20-28 | - | - |
| Integration event | OnPostOutputLineOnAfterItemJournalLineInit | (var Record Item Journal Line, Record Source Code Setup) | 20-28 | Pending 27.0 | Moved to codeunit MfgWhseActivityPost |
| Integration event | OnAfterAvailabilityError | (Record Warehouse Activity Line) | 21-28 | - | - |
| Integration event | OnAfterReleaseSalesDocument | (var Record Sales Header, Record Warehouse Activity Header, var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeCheckAvailability | (var Record Warehouse Activity Line, var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeWhseActivLineDelete | (var Record Warehouse Activity Line, var Boolean, Boolean) | 21-28 | - | - |
| Integration event | OnPostSourceDocumentOnBeforeTransferPostReceiptRun | (var Record Transfer Header, Record Warehouse Activity Header) | 21-28 | - | - |
| Integration event | OnUpdateSourceDocumentOnBeforePurchLineModify | (var Record Purchase Line, Record Warehouse Activity Line) | 21-28 | - | - |
| Integration event | OnUpdateSourceDocumentOnBeforeSalesLineModify | (var Record Sales Line, Record Warehouse Activity Line) | 21-28 | - | - |
| Integration event | OnUpdateSourceDocumentOnBeforeTransLineModify | (var Record Transfer Line, Record Warehouse Activity Line) | 21-28 | - | - |
| Integration event | OnCodeOnAfterWhseActivLineSetFilters | (var Record Warehouse Activity Header, var Record Warehouse Activity Line, var Boolean) | 22-28 | - | - |
| Integration event | OnInitSourceDocumentOnBeforeTransLineLoopIteration | (Record Transfer Header, var Record Transfer Line, Record Warehouse Activity Header, var Boolean) | 22-28 | - | - |
| Integration event | OnUpdateQtyToHandleOnPurchaseLineOnBeforePurchLineModify | (var Record Purchase Line, var Boolean) | 22-28 | - | - |
| Integration event | OnUpdateQtyToHandleOnSalesLineOnBeforeSalesLineModify | (var Record Sales Line, var Boolean) | 22-28 | - | - |
| Integration event | OnUpdateSourceDocumentOnAfterGetTransLine | (var Record Transfer Line, Record Warehouse Activity Line) | 22-28 | - | - |
| Integration event | OnAfterCreateWhseJnlLine | (var Record Warehouse Journal Line, Record Warehouse Activity Line, Record Source Code Setup) | 23-28 | - | - |
| Integration event | OnAfterOnRun | (var Record Warehouse Activity Line) | 23-28 | - | - |
| Integration event | OnUpdateSourceDocumentOnSourceDocumentIsPurchaseOrder | (var Record Purchase Line, Record Warehouse Activity Line) | 23-28 | - | - |
| Integration event | OnUpdateSourceDocumentOnBeforeModifySalesLine | (var Record Sales Line, Record Warehouse Activity Line, Record Warehouse Activity Header) | 23-28 | - | - |
| Integration event | OnPostWhseActivityLineOnBeforePostDoc | (var Record Warehouse Activity Line, Record Warehouse Activity Header, var Integer, var Integer, var Code[20], var Boolean) | 24-28 | - | - |
| Integration event | OnBeforeCheckProdOrderLine | (var Record Prod. Order Line, var Boolean) | 24-28 | Pending 27.0 | Moved to codeunit MfgWhseActivityPost |
| Integration event | OnPostWhseActivityLineOnBeforeCreatePostedActivHeader | (var Record Warehouse Activity Header) | 24-28 | - | - |
| Integration event | OnPostProdConsumption | (var Record Warehouse Activity Header, var Record Warehouse Activity Line, var Integer, var Integer, var Code[20]) | 27-28 | - | - |
| Integration event | OnPostProdOutput | (var Record Warehouse Activity Header, var Record Warehouse Activity Line, var Integer, var Integer, var Code[20]) | 27-28 | - | - |
| Integration event | OnCreateWhseJnlLineOnSetReferenceDocument | (Record Warehouse Activity Line, var Record Warehouse Journal Line, Record Source Code Setup) | 27-28 | - | - |
| Integration event | OnBeforeConsumeWarehouseEntryForJobPurchase | (var Record Warehouse Journal Line, Record Warehouse Activity Line, var Boolean, var Boolean) | 27-28 | - | - |
| Integration event | OnAfterPostWhseActivityCompleted | (Record Warehouse Activity Header, var Record Purchase Header, var Record Sales Header, var Record Transfer Header, Boolean, Boolean) | 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.
