Edit

Share via


OnCheckPreconditionsPerDatabase (Codeunit) trigger

Version: Available or changed with runtime version 1.0.

Runs before an extension upgrade.

Important

The Subtype Property must be set to Upgrade in the Codeunit.

Syntax

trigger OnCheckPreconditionsPerDatabase()
begin
    ...
end;

Note

This trigger is also available in upgrade codeunits for extensions, not just for the base application.

Remarks

It is used to check that certain requirements are met in order to run the upgrade.If an error occurs during runtime the extension upgrade is canceled.

This trigger is run once in the entire upgrade process, in a single system session that does not open any company.

Get Started with AL
Developing Extensions