Hi,
I'm fairly new to Dynamics but have been able to figure out how to publish some query extensions in Business Central. Now I need to upgrade the query to add a few fields. I have read that I need to write an upgrade codeunit but am not sure what to include. I found this sample code in Microsoft documentation but am not sure what code I need to add for each trigger to update my extension. I feel like this should be relatively simple, but I haven't found any good example for updating query extensions. Any guidance is greatly appreciated. Thanks.
codeunit [ID] [NAME]
{
Subtype=Upgrade;
trigger OnCheckPreconditionsPerCompany()
begin
// Code to make sure company is OK to upgrade.
end;
trigger OnUpgradePerCompany()
begin
// Code to perform company related table upgrade tasks
end;
trigger OnValidateUpgradePerCompany()
begin
// Code to make sure that upgrade was successful for each company
end;
}


Report
All responses (
Answers (