#9465 [Extensibility Request] issue 30350: add OnBeforeTestFirstApplyItemLedgerEntryTracking event
A new integration event OnBeforeTestFirstApplyItemLedgerEntryTracking was added to codeunit 22 so extensions can validate item tracking and optionally modify the Item Tracking Code before standard validation runs.
- 6files
- 6AL files
- 1objects
Pull request · merged into main (BC30) on 2026-08-10 by AleksandricMarko · 6 files (+42 -6), 6 AL · feature · tier official · reviewed (checked by Opus)
What changed
- New integration event raised at the start of TestFirstApplyItemLedgerEntryTracking in codeunit 22
- Lets extensions raise clearer, document-specific tracking errors
- Item Tracking Code is passed by var so subscribers can adjust it
- Makes it possible to skip lot checking in specific scenarios
- Added in W1 and mirrored to the CH, ES, IT, RU and APAC layers
AL objects touched
- Codeunit 22 “Item Jnl.-Post Line”, Base Application: modified
src/Layers/APAC/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/CH/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/ES/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/IT/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshot
Context
- Work items: AB#642242
- Labels: Team: SCM, event-request
- Systems: inventory
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).