Codeunit 18122325 EOS004 Upgrade Tags
Wrapper for upgrade tag management using the predefined EOS format.
procedure SetApp(app: ModuleInfo)
Sets the app for which upgrade tags should be handled. This method must be called before any other method can be executed.
app ModuleInfo
The app for which upgrade tags should be handled.
procedure SetApp(app: ModuleInfo; isDatabaseUpgrade: Boolean)
Sets the app for which upgrade tags should be handled if the upgrade is for database. This method must be called before any other method can be executed.
app ModuleInfo
The app for which upgrade tags should be handled.
isDatabaseUpgrade Boolean
procedure SetAppFromCaller()
Sets the app for which upgrade tags should be handled by using the caller’s app. This method must be called before any other method can be executed.
procedure HasUpgradeTag(WorkItemId: Integer): Boolean
Check if an upgrade tag for the specified work item exists.
WorkItemId Integer
The ID of the work item.
Returns Boolean
true
if it exists, false
otherwise.
procedure HasUpgradeTag(WorkItemId: Integer; Iteration: Integer): Boolean
Check if an upgrade tag for the specified work item and iteration exists.
WorkItemId Integer
The ID of the work item.
Iteration Integer
The number of the iteration. Defaults to 1.
Returns Boolean
true
if it exists, false
otherwise.
procedure SetUpgradeTag(WorkItemId: Integer)
Creates an upgrade tag for the specified work item.
WorkItemId Integer
The ID of the work item.
procedure SetUpgradeTag(WorkItemId: Integer; Iteration: Integer)
Creates an upgrade tag for the specified work item and iteration.
WorkItemId Integer
The ID of the work item.
Iteration Integer
The number of the iteration. Defaults to 1.
procedure SetUpgradeTagIfNotExists(WorkItemId: Integer; Iteration: Integer): Boolean
Creates an upgrade tag for the specified work item and iteration, if it not already exists.
WorkItemId Integer
The ID of the work item.
Iteration Integer
The number of the iteration. Defaults to 1.
Returns Boolean
true
if the upgrade tag did not exist and was created. false
if the tag already existed.
procedure SetUpgradeTagIfNotExists(WorkItemId: Integer): Boolean
Creates an upgrade tag for the specified work item and iteration, if it not already exists.
WorkItemId Integer
The ID of the work item.
Returns Boolean
true
if the upgrade tag did not exist and was created. false
if the tag already existed.
procedure BeginUpgrade(WorkItemId: Integer): Boolean
Starts an upgrade for the specified work item and returns true
if the upgrade should proceed.
If the upgrade tag already exists, false
is returned and you should abort the upgrade.
If an upgrade is already in progress, an error is thrown, upgrades must first be ended via EndUpgrade
.
WorkItemId Integer
The work item ID
Returns Boolean
true
if the tag did not yet exist and upgrade should proceed. False
otherwise.
procedure BeginUpgrade(WorkItemId: Integer; Iteration: Integer): Boolean
Starts an upgrade for the specified work item and iteration and returns true
if the upgrade should proceed.
If the upgrade tag already exists, false
is returned and you should abort the upgrade.
If an upgrade is already in progress, an error is thrown, upgrades must first be ended via EndUpgrade
.
WorkItemId Integer
The work item ID
Iteration Integer
The iteration
Returns Boolean
true
if the tag did not yet exist and upgrade should proceed. False
otherwise.
procedure EndUpgrade()
Stops the upgrade that was started via BeginUpgrade
.
This will log a message to telemetry and set the upgrade tag.
If no upgrade is in progress, an error is thrown.
procedure FormatTag(WorkItemId: Integer): Code[250]
Returns an upgrade tag formatted according to EOS defined rules and specifications.
WorkItemId Integer
The work item ID
Returns Code[250]
The upgrade tag
procedure FormatTag(WorkItemId: Integer; Iteration: Integer): Code[250]
Returns an upgrade tag formatted according to EOS defined rules and specifications.
WorkItemId Integer
The work item ID
Iteration Integer
The iteration
Returns Code[250]
The upgrade tag
procedure MigratePermissionSet(OldName: Code[20]; NewName: Code[20])
Migrates a users permission set from the old tenant scope to the new AL system scope.
OldName Code[20]
The old name the permission set had in the XML file.
NewName Code[20]
The name of the permission set in AL.
procedure MigratePermissionSet(OldName: Code[20]; NewName: Code[20]; Module: ModuleInfo)
Migrates a users permission set from the old tenant scope to the new AL system scope.
OldName Code[20]
The old name the permission set had in the XML file.
NewName Code[20]
The name of the permission set in AL.
Module ModuleInfo
The app for which to migrate.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.