---
title: "Application Test Library events"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/events/application-test-library/
checked: 2026-11-19
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Application Test Library events

JOP-AL, https://jonas-paprotka.de/ref/events/application-test-library/

57 events, one row per event and signature, by object and then by name.

| Object | Event | Signature | Kind | Versions | Obsolete |
| --- | --- | --- | --- | --- | --- |
| [Codeunit 130502 Library - Item Tracking](https://jonas-paprotka.de/ref/codeunit/130502-library-item-tracking/) | OnItemTracking | `(RecRef: RecordRef; var ReservEntry: Record "Reservation Entry"; ItemTrackingSetup: Record "Item Tracking Setup"; QtyBase: Decimal; var IsHandled: Boolean)` | Internal event | 28-29 | - |
| [Codeunit 130509 Library - Sales](https://jonas-paprotka.de/ref/codeunit/130509-library-sales/) | OnAfterCreateCustomer | `(var Customer: Record Customer)` | Integration event | 28-29 | - |
| [Codeunit 130509 Library - Sales](https://jonas-paprotka.de/ref/codeunit/130509-library-sales/) | OnAfterCreateSalesHeader | `(var SalesHeader: Record "Sales Header"; DocumentType: Option; SellToCustomerNo: Code[20])` | Integration event | 28-29 | - |
| [Codeunit 130509 Library - Sales](https://jonas-paprotka.de/ref/codeunit/130509-library-sales/) | OnAfterCreateSalesLineWithShipmentDate | `(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; Type: Option; No: Code[20]; ShipmentDate: Date; Quantity: Decimal)` | Integration event | 28-29 | - |
| [Codeunit 130509 Library - Sales](https://jonas-paprotka.de/ref/codeunit/130509-library-sales/) | OnAfterCreateSalesPrice | `(var SalesPrice: Record "Sales Price"; ItemNo: Code[20]; SalesType: Option; SalesCode: Code[20]; StartingDate: Date; CurrencyCode: Code[10]; VariantCode: Code[10]; UOMCode: Code[10]; MinQty: Decimal; UnitPrice: Decimal)` | Integration event | 28-29 | - |
| [Codeunit 130509 Library - Sales](https://jonas-paprotka.de/ref/codeunit/130509-library-sales/) | OnBeforeCreateSalesHeader | `(var SalesHeader: Record "Sales Header"; DocumentType: Enum "Sales Document Type"; SellToCustomerNo: Code[20])` | Integration event | 28-29 | - |
| [Codeunit 130509 Library - Sales](https://jonas-paprotka.de/ref/codeunit/130509-library-sales/) | OnBeforePostSalesDocument | `(var SalesHeader: Record "Sales Header"; NewShipReceive: Boolean; NewInvoice: Boolean; AfterPostSalesDocumentSendAsEmail: Boolean)` | Integration event | 28-29 | - |
| [Codeunit 130509 Library - Sales](https://jonas-paprotka.de/ref/codeunit/130509-library-sales/) | OnCreateCustomerOnBeforeInsertCustomer | `(var Customer: Record Customer)` | Integration event | 28-29 | - |
| [Codeunit 130512 Library - Purchase](https://jonas-paprotka.de/ref/codeunit/130512-library-purchase/) | OnAfterCreatePurchaseLine | `(var PurchaseLine: Record "Purchase Line"; PurchaseHeader: Record "Purchase Header"; Type: Enum "Purchase Line Type"; No: Code[20]; Quantity: Decimal)` | Integration event | 28-29 | - |
| [Codeunit 130512 Library - Purchase](https://jonas-paprotka.de/ref/codeunit/130512-library-purchase/) | OnAfterCreatePurchHeader | `(var PurchaseHeader: Record "Purchase Header"; DocumentType: Enum "Purchase Document Type"; BuyfromVendorNo: Code[20])` | Integration event | 28-29 | - |
| [Codeunit 130512 Library - Purchase](https://jonas-paprotka.de/ref/codeunit/130512-library-purchase/) | OnAfterCreateVendor | `(var Vendor: Record Vendor)` | Integration event | 28-29 | - |
| [Codeunit 130512 Library - Purchase](https://jonas-paprotka.de/ref/codeunit/130512-library-purchase/) | OnBeforeCreatePurchaseHeader | `(var PurchaseHeader: Record "Purchase Header"; DocumentType: Enum "Purchase Document Type"; BuyfromPurchaseNo: Code[20])` | Integration event | 28-29 | - |
| [Codeunit 131001 Library - Dimension](https://jonas-paprotka.de/ref/codeunit/131001-library-dimension/) | OnGetLocalTablesWithDimSetIDValidationIgnored | `(var CountOfTablesIgnored: Integer)` | Integration event | 28-29 | - |
| [Codeunit 131001 Library - Dimension](https://jonas-paprotka.de/ref/codeunit/131001-library-dimension/) | OnGetTableNosWithGlobalDimensionCode | `(var TableBuffer: Record Integer temporary)` | Integration event | 28-29 | - |
| [Codeunit 131001 Library - Dimension](https://jonas-paprotka.de/ref/codeunit/131001-library-dimension/) | OnVerifyShorcutDimCodesUpdatedOnDimSetIDValidationLocal | `(var TempAllObj: Record AllObj temporary; DimSetID: Integer; GlobalDim1ValueCode: Code[20]; GlobalDim2ValueCode: Code[20])` | Integration event | 28-29 | - |
| [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) | OnAfterCreatePaymentTerms | `(var PaymentTerms: Record "Payment Terms")` | Integration event | 28-29 | - |
| [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) | OnAfterCreatePostCode | `(var PostCode: Record "Post Code")` | Integration event | 28-29 | - |
| [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) | OnAfterCreatePrepaymentVATPostingSetup | `(var VATPostingSetup: Record "VAT Posting Setup"; VATCalcType: Enum "Tax Calculation Type"; GenPostingType: Enum "General Posting Type"; SetupGLAccount: Record "G/L Account"; VATAccountNo: Code[20])` | Integration event | 28-29 | - |
| [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) | OnAfterCreateVATPostingSetup | `(var VATPostingSetup: Record "VAT Posting Setup")` | Integration event | 28-29 | - |
| [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) | OnAfterCreateVATProductPostingGroup | `(var VATProductPostingGroup: Record "VAT Product Posting Group")` | Integration event | 28-29 | - |
| [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) | OnAfterFillSalesHeaderExcludedFieldList | `(var FieldListToExclude: List of [Text])` | Integration event | 28-29 | - |
| [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) | OnAfterSetPostingGroupsOnPrepmtGLAccount | `(var LineGLAccount: Record "G/L Account"; var PrepmtGLAccount: Record "G/L Account"; GenPostingType: Enum "General Posting Type"; VATCalcType: Option "Normal VAT","Reverse Charge VAT","Full VAT","Sales Tax"; PrepmtVATCalcType: Option)` | Integration event | 28-29 | - |
| [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) | OnBeforeCreatePrepaymentVATPostingSetup | `(var VATPostingSetup: Record "VAT Posting Setup"; VATCalcType: Enum "Tax Calculation Type"; GenPostingType: Enum "General Posting Type"; SetupGLAccount: Record "G/L Account"; VATAccountNo: Code[20]; var Handled: Boolean)` | Integration event | 28-29 | - |
| [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) | OnBeforeCreateVATPostingSetup | `(var VATPostingSetup: Record "VAT Posting Setup"; var Handled: Boolean)` | Integration event | 28-29 | - |
| [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) | OnBeforeCreateVATPostingSetupWithAccounts | `(var VATPostingSetup: Record "VAT Posting Setup"; VATCalculationType: Enum "Tax Calculation Type"; VATRate: Decimal; var IsHandled: Boolean)` | Integration event | 28-29 | - |
| [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) | OnBeforeCreateVATProductPostingGroup | `(var VATProductPostingGroup: Record "VAT Product Posting Group"; var Handled: Boolean)` | Integration event | 28-29 | - |
| [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) | OnBeforeSetPostingGroupsOnPrepmtGLAccount | `(var LineGLAccount: Record "G/L Account"; var PrepmtGLAccount: Record "G/L Account"; GenPostingType: Enum "General Posting Type"; VATCalcType: Option "Normal VAT","Reverse Charge VAT","Full VAT","Sales Tax"; PrepmtVATCalcType: Option; var Handled: Boolean)` | Integration event | 28-29 | - |
| [Codeunit 131306 Library - Journals](https://jonas-paprotka.de/ref/codeunit/131306-library-journals/) | OnBeforeModifyGenJnlLineWhenCreate | `(var GenJournalLine: Record "Gen. Journal Line")` | Integration event, internal access | 28-29 | - |
| [Codeunit 131332 Library - Cash Flow Helper](https://jonas-paprotka.de/ref/codeunit/131332-library-cash-flow-helper/) | OnAfterCreatePurchaseLine | `(PurchaseHeader: Record "Purchase Header"; GLAccount: Record "G/L Account")` | Integration event | 28-29 | - |
| [Codeunit 131332 Library - Cash Flow Helper](https://jonas-paprotka.de/ref/codeunit/131332-library-cash-flow-helper/) | OnBeforeCreatePurchaseLine | `(PurchaseHeader: Record "Purchase Header"; GLAccount: Record "G/L Account"; var Handled: Boolean)` | Integration event | 28-29 | - |
| [Codeunit 131902 Library - Service](https://jonas-paprotka.de/ref/codeunit/131902-library-service/) | OnBeforeCustomerModifyCreateServiceLine | `(var Customer: Record Customer)` | Integration event | 28-29 | - |
| [Codeunit 131902 Library - Service](https://jonas-paprotka.de/ref/codeunit/131902-library-service/) | OnBeforePostServiceOrder | `(var ServiceHeader: Record "Service Header")` | Integration event | 28-29 | - |
| [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) | OnAfterCreateItem | `(var Item: Record Item)` | Integration event | 28-29 | - |
| [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) | OnAfterCreateItemJnlLineWithNoItem | `(var ItemJournalLine: Record "Item Journal Line"; ItemJournalBatch: Record "Item Journal Batch"; JournalTemplateName: Code[10]; JournalBatchName: Code[10]; EntryType: Option)` | Integration event | 28-29 | - |
| [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) | OnAfterCreateItemManufacturing | `(var Item: Record Item)` | Integration event | 28-29 | - |
| [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) | OnAfterCreateItemVariant | `(var ItemVariant: Record "Item Variant"; ItemNo: Code[20])` | Integration event | 28-29 | - |
| [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) | OnAfterCreateTransferHeader | `(var TransferHeader: Record "Transfer Header"; FromLocation: Text[10]; ToLocation: Text[10]; InTransitCode: Text[10])` | Integration event | 28-29 | - |
| [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) | OnAfterCreateVariant | `(var ItemVariant: Record "Item Variant"; Item: Record Item)` | Integration event | 28-29 | - |
| [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) | OnBeforeCreateItemVariant | `(var ItemVariant: Record "Item Variant"; ItemNo: Code[20]; var Handled: Boolean)` | Integration event | 28-29 | - |
| [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) | OnBeforeCreateTransferHeader | `(var TransferHeader: Record "Transfer Header"; FromLocation: Text[10]; ToLocation: Text[10]; InTransitCode: Text[10]; var Handled: Boolean)` | Integration event | 28-29 | - |
| [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) | OnBeforeCreateVariant | `(var ItemVariant: Record "Item Variant"; Item: Record Item; var Handled: Boolean)` | Integration event | 28-29 | - |
| [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) | OnBeforeModifyInventoryPostingSetup | `(var InventoryPostingSetup: Record "Inventory Posting Setup")` | Integration event | 28-29 | - |
| [Codeunit 132202 Library - Manufacturing](https://jonas-paprotka.de/ref/codeunit/132202-library-manufacturing/) | OnBeforeOpenJournal | `(var RequisitionLine: Record "Requisition Line"; var Handled: Boolean)` | Integration event | 28-29 | Pending 29.0 |
| [Codeunit 132204 Library - Warehouse](https://jonas-paprotka.de/ref/codeunit/132204-library-warehouse/) | OnAfterCreateBin | `(var Bin: Record Bin; LocationCode: Code[10]; BinCode: Code[20]; ZoneCode: Code[10]; BinTypeCode: Code[10])` | Integration event | 28-29 | - |
| [Codeunit 132204 Library - Warehouse](https://jonas-paprotka.de/ref/codeunit/132204-library-warehouse/) | OnAfterCreateFullWMSLocation | `(var Location: Record Location; BinsPerZone: Integer)` | Integration event | 28-29 | - |
| [Codeunit 132204 Library - Warehouse](https://jonas-paprotka.de/ref/codeunit/132204-library-warehouse/) | OnAfterCreateLocationCodeAndName | `(var Location: Record Location)` | Integration event | 28-29 | - |
| [Codeunit 132204 Library - Warehouse](https://jonas-paprotka.de/ref/codeunit/132204-library-warehouse/) | OnAfterCreateLocationWMS | `(var Location: Record Location; BinMandatory: Boolean; RequirePutAway: Boolean; RequirePick: Boolean; RequireReceive: Boolean; RequireShipment: Boolean)` | Integration event | 28-29 | - |
| [Codeunit 132204 Library - Warehouse](https://jonas-paprotka.de/ref/codeunit/132204-library-warehouse/) | OnAfterCreateTransferHeader | `(var TransferHeader: Record "Transfer Header"; FromLocation: Text[10]; ToLocation: Text[10]; InTransitCode: Text[10]; var Handled: Boolean)` | Integration event | 28-29 | - |
| [Codeunit 132204 Library - Warehouse](https://jonas-paprotka.de/ref/codeunit/132204-library-warehouse/) | OnAfterCreateTransferHeaderInsertTransferHeader | `(var TransferHeader: Record "Transfer Header"; FromLocation: Text[10]; ToLocation: Text[10]; InTransitCode: Text[10]; var Handled: Boolean)` | Integration event | 28-29 | - |
| [Codeunit 132204 Library - Warehouse](https://jonas-paprotka.de/ref/codeunit/132204-library-warehouse/) | OnAfterCreateWhseReceiptFromPO | `(var PurchaseHeader: Record "Purchase Header")` | Integration event | 28-29 | - |
| [Codeunit 132204 Library - Warehouse](https://jonas-paprotka.de/ref/codeunit/132204-library-warehouse/) | OnAfterValidateItemNo | `(var TransferHeader: Record "Transfer Header"; var TransferLine: Record "Transfer Line"; ItemNo: Text[20]; Quantity: Decimal)` | Integration event | 28-29 | - |
| [Codeunit 132207 Library - Assembly](https://jonas-paprotka.de/ref/codeunit/132207-library-assembly/) | OnBeforeInsertInventoryPostingSetup | `(var InventoryPostingSetup: Record "Inventory Posting Setup")` | Integration event | 28-29 | - |
| [Codeunit 132207 Library - Assembly](https://jonas-paprotka.de/ref/codeunit/132207-library-assembly/) | OnCreateMultipleLvlTreeOnCreateBOM | `(var Item: Record Item; NoOfComps: Integer; var BOMCreated: Boolean)` | Integration event | 28-29 | - |
| [Codeunit 132213 Library - Small Business](https://jonas-paprotka.de/ref/codeunit/132213-library-small-business/) | OnBeforeCreateItemAsServiceItemGet | `(var Item: Record Item)` | Integration event | 28-29 | - |
| [Codeunit 132250 Library - Test Initialize](https://jonas-paprotka.de/ref/codeunit/132250-library-test-initialize/) | OnAfterTestSuiteInitialize | `(CallerCodeunitID: Integer)` | Integration event | 28-29 | - |
| [Codeunit 132250 Library - Test Initialize](https://jonas-paprotka.de/ref/codeunit/132250-library-test-initialize/) | OnBeforeTestSuiteInitialize | `(CallerCodeunitID: Integer)` | Integration event | 28-29 | - |
| [Codeunit 132250 Library - Test Initialize](https://jonas-paprotka.de/ref/codeunit/132250-library-test-initialize/) | OnTestInitialize | `(CallerCodeunitID: Integer)` | Integration event | 28-29 | - |
