OnBeforeInsertRecord (Xml Port Table Element) trigger

Version: Available or changed with runtime version 1.0.

Runs after a record has been loaded and before it is inserted into a database table.

Syntax

trigger OnBeforeInsertRecord()
begin
    ...
end;

Remarks

This trigger is only used to import data. It is typically used for evaluation or calculations before the record is inserted into the database table.

If the AutoSave Property is false, then although the record is not inserted automatically, the OnBeforeInsertRecord trigger is still called before the insertion would have occurred.

Get Started with AL
Developing Extensions