mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-08-06 17:36:53 +01:00
Pure git-mv relocation of all 7 performance articles from community/knowledge/performance/ to microsoft/knowledge/performance/. No content changes. Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
16 lines
599 B
AL
16 lines
599 B
AL
codeunit 50100 "Event Audit Buffer"
|
|
{
|
|
SingleInstance = true;
|
|
|
|
// Unbounded global: every event fires adds an entry for the lifetime of the session.
|
|
var
|
|
AllEventIds: List of [Guid];
|
|
|
|
[EventSubscriber(ObjectType::Table, Database::"Sales Header", OnAfterInsertEvent, '', false, false)]
|
|
local procedure OnAfterInsertSalesHeader(var Rec: Record "Sales Header")
|
|
begin
|
|
// No cap. No eviction. No reset. A session that sees ten thousand inserts
|
|
// keeps ten thousand GUIDs in memory until the user signs out.
|
|
AllEventIds.Add(Rec.SystemId);
|
|
end;
|
|
}
|