bcquality/microsoft/knowledge/upgrade/guard-performance-impacting-upgrade-triggers.good.al
Jesper Schulz-Wedde 5bcdc55df9 Sync knowledge articles with review agent instructions
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-05 14:08:32 +02:00

25 lines
610 B
AL

codeunit 50830 "Upgrade Sample Trigger Good"
{
Subtype = Upgrade;
trigger OnValidateUpgradePerCompany()
var
UpgradeTag: Codeunit "Upgrade Tag";
begin
// Required for regulatory data validation before this release can run.
if UpgradeTag.HasUpgradeTag(ValidationTag()) then
exit;
ValidateAllCustomers();
UpgradeTag.SetUpgradeTag(ValidationTag());
end;
local procedure ValidateAllCustomers()
begin
end;
local procedure ValidationTag(): Code[250]
begin
exit('MS-000010-ValidateCustomers-20260501');
end;
}