OnModifyRecord (Page) Trigger

Version: Available or changed with runtime version 1.0.

Runs before a record is modified in the table.

Syntax

trigger OnModifyRecord(): Ok
begin
    ...
end;

Return Value

Ok
 Type: Boolean
true if the record was modified, otherwise false. The return value is checked after each call. The default value is true.

Remarks

If an error occurs in the trigger code, the action is canceled, but the page is not closed.

You can write to the database using this trigger.

See Also

Get Started with AL
Developing Extensions
OnModifyRecord (Request Page) Trigger
OnModifyRecord (Request Page Extension) Trigger
OnModifyRecord (Page Extension) Trigger