Skip to content
Arthur van de Vondervoort edited this page Nov 23, 2024 · 1 revision

Handled parameters in event signatures should be passed by var

This rule identifies the IsHandeld parameter on event publishers that are not passed by var. If the event signature contains a parameter called IsHandled or Handled of type Boolean, it is expected to be passed by reference (var). Missing var can lead to unexpected behavior.

Example

[IntegrationEvent(false, false)]
local procedure OnBeforeMyProcedure(var MyTable: Record MyTable; IsHandled: Boolean) // The Handled parameter in the event signature should be passed by var to ensure proper event handling.
begin
    
end;

Read more

Clone this wiki locally