-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cod50101.AIRUpgradecodeunit.al
46 lines (36 loc) · 1.15 KB
/
Cod50101.AIRUpgradecodeunit.al
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
codeunit 50101 "AIR Upgrade codeunit"
{
Subtype = Upgrade;
trigger OnCheckPreconditionsPerDatabase()
begin
//if you will add insert any code that insert data to a table,
//where DataPerCompany = True, you will receive an error during publish process
AddMessageToOurTable('OnCheckPreconditionsPerDatabase');
end;
trigger OnCheckPreconditionsPerCompany()
begin
AddMessageToOurTable('OnCheckPreconditionsPerCompany');
end;
trigger OnUpgradePerDatabase()
begin
AddMessageToOurTable('OnUpgradePerDatabase');
end;
trigger OnUpgradePerCompany()
begin
AddMessageToOurTable('OnUpgradePerCompany');
end;
trigger OnValidateUpgradePerDatabase()
begin
AddMessageToOurTable('OnValidateUpgradePerDatabase');
end;
trigger OnValidateUpgradePerCompany()
begin
AddMessageToOurTable('OnValidateUpgradePerCompany');
end;
local procedure AddMessageToOurTable(MessageFromTrigger: Text)
var
CheckInstallProcess: Record "AIR Check install process";
begin
CheckInstallProcess.InsertRecord(MessageFromTrigger);
end;
}