KVSKBAUDIChangeLogManagement
Events
OnBeforeInsertChangeLogEntry(Record KVSKBAUDIChangeLogEntry, Boolean, Boolean) :
Summary: This event is raised before inserting a change log entry. The change log entry record is passed by reference, so it can be modified by the event subscriber. If the change log entry is for an always logged table, the AlwaysLog parameter will be true. The Handled parameter can be set to true by the event subscriber to prevent the default insertion of the change log entry.
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertChangeLogEntry(var KVSKBAUDIChangeLogEntry: Record "KVSKBAUDIChangeLogEntry"; AlwaysLog: Boolean; var Handled: Boolean):
Parameters:
KVSKBAUDIChangeLogEntry: The change log entry record that is about to be inserted.AlwaysLog: Indicates whether the change log entry is for an always logged table.Handled: Can be set to true by the event subscriber to prevent the default insertion of the change log entry.
Remarks: This event is raised for all change log entries, including those for always logged tables.
OnAfterIsAlwaysLoggedTable(Integer, Boolean) :
Summary: This event is raised after determining whether a table is always logged. The AlwaysLogTable parameter can be modified by the event subscriber.
[IntegrationEvent(false, false)]
local procedure OnAfterIsAlwaysLoggedTable(TableID: Integer; var AlwaysLogTable: Boolean):
Parameters:
TableID: The ID of the table being checked.AlwaysLogTable: Indicates whether the table is always logged. Can be modified by the event subscriber.
Remarks: This event is raised only for tables that are not in the predefined range of always logged tables (5487620 .. 5487719) and are not the change log entry table itself.
OnBeforeIsLogActive(Integer, Integer, Option, Boolean, Boolean) :
Summary: This event is raised before determining whether logging is active for a specific field change. The IsActive parameter can be modified by the event subscriber to enable or disable logging for the specific field change. The IsHandled parameter can be set to true by the event subscriber to prevent further processing and use the value set in IsActive.
[IntegrationEvent(false, false)]
local procedure OnBeforeIsLogActive(TableNumber: Integer; FieldNumber: Integer; TypeOfChange: Option; var IsActive: Boolean; var IsHandled: Boolean):
Parameters:
TableNumber: The number of the table containing the field.FieldNumber: The number of the field being checked.TypeOfChange: The type of change being checked (insertion, modification, deletion).IsActive: Indicates whether logging is active for the specific field change. Can be modified by the event subscriber.IsHandled: System.Object[]
Remarks: This event is raised for every field change being evaluated for logging, allowing fine-grained control over which changes are logged.