diff --git a/src/System Application/App/Extension Management/src/ExtensionInstallation.Page.al b/src/System Application/App/Extension Management/src/ExtensionInstallation.Page.al index 3586fb0641f..94f223f8cbc 100644 --- a/src/System Application/App/Extension Management/src/ExtensionInstallation.Page.al +++ b/src/System Application/App/Extension Management/src/ExtensionInstallation.Page.al @@ -13,6 +13,9 @@ using System; page 2503 "Extension Installation" { Extensible = false; + ObsoleteReason = 'Use the Business Central admin center to install and manage extensions.'; + ObsoleteState = Pending; + ObsoleteTag = '29.0'; PageType = Card; SourceTable = "Extension Installation"; SourceTableTemporary = true; @@ -80,4 +83,3 @@ page 2503 "Extension Installation" end; } - diff --git a/src/System Application/App/Extension Management/src/ExtensionManagement.Page.al b/src/System Application/App/Extension Management/src/ExtensionManagement.Page.al index a4f906fc23e..a7fdbc63da1 100644 --- a/src/System Application/App/Extension Management/src/ExtensionManagement.Page.al +++ b/src/System Application/App/Extension Management/src/ExtensionManagement.Page.al @@ -16,6 +16,9 @@ using System.Integration; page 2500 "Extension Management" { Caption = 'Extension Management'; + ObsoleteReason = 'Use the Business Central admin center to upload and manage per-tenant extensions.'; + ObsoleteState = Pending; + ObsoleteTag = '29.0'; AdditionalSearchTerms = 'app,add-in,customize,plug-in,appsource'; ApplicationArea = All; DeleteAllowed = false; @@ -382,9 +385,21 @@ page 2500 "Extension Management" ActionsEnabled := false; HelpActionVisible := false; + ShowExtensionManagementDeprecationNotification(); ShowUninstalledExtensionsNotification(); end; + local procedure ShowExtensionManagementDeprecationNotification() + var + DeprecationNotification: Notification; + begin + DeprecationNotification.Id := ExtensionManagementDeprecationNotificationIdTok; + DeprecationNotification.Scope := NotificationScope::LocalScope; + DeprecationNotification.Message(ExtensionManagementDeprecationMsg); + DeprecationNotification.AddAction(ReadMoreHereLbl, Codeunit::"Extension Operation Impl", 'OpenAdminCenterExtensionManagementDocumentation'); + DeprecationNotification.Send(); + end; + local procedure ShowUninstalledExtensionsNotification() var ExtensionDatabaseSnapshot: Record "Extension Database Snapshot"; @@ -429,6 +444,9 @@ page 2500 "Extension Management" ShowOrphanedDataLbl: Label 'Show Data'; MarkAllAsReviewedLbl: Label 'Mark All as Reviewed'; OrphanedDataNotificationIdTok: Label 'b1c5a678-2e3f-4d91-a6b0-9f8e7d6c5b4a', Locked = true; + ExtensionManagementDeprecationMsg: Label 'Extension management is moving to the Business Central admin center. Use the admin center to upload and manage per-tenant extensions. This page will become unavailable in a future release.'; + ReadMoreHereLbl: Label 'Read more here'; + ExtensionManagementDeprecationNotificationIdTok: Label '3be91c11-8195-4c65-be23-20fddbea9bb7', Locked = true; protected procedure IsSaasEnvironment(): boolean begin diff --git a/src/System Application/App/Extension Management/src/ExtensionOperationImpl.Codeunit.al b/src/System Application/App/Extension Management/src/ExtensionOperationImpl.Codeunit.al index 544226269a6..a76c7db91de 100644 --- a/src/System Application/App/Extension Management/src/ExtensionOperationImpl.Codeunit.al +++ b/src/System Application/App/Extension Management/src/ExtensionOperationImpl.Codeunit.al @@ -37,6 +37,7 @@ codeunit 2503 "Extension Operation Impl" InstallationFailedOpenDetailsTxt: Label 'App installation failed. User has chosen to see the details.'; InstallationFailedDoNotOpenDetailsTxt: Label 'App installation failed. User has chosen not to check out the details.'; PageCaptionTok: Label '%1 %2', Comment = '%1 = Page default caption %2 = App name'; + AdminCenterExtensionManagementUrlLbl: Label 'https://go.microsoft.com/fwlink/?LinkId=2374621', Locked = true; local procedure AssertIsInitialized() begin @@ -149,6 +150,11 @@ codeunit 2503 "Extension Operation Impl" exit(true); end; + procedure OpenAdminCenterExtensionManagementDocumentation(Notification: Notification) + begin + Hyperlink(AdminCenterExtensionManagementUrlLbl); + end; + procedure UnpublishUninstalledPerTenantExtension(PackageID: Guid) begin CheckPermissions(); diff --git a/src/System Application/App/Extension Management/src/UploadAndDeployExtension.Page.al b/src/System Application/App/Extension Management/src/UploadAndDeployExtension.Page.al index 032a9087293..2720cfa9cca 100644 --- a/src/System Application/App/Extension Management/src/UploadAndDeployExtension.Page.al +++ b/src/System Application/App/Extension Management/src/UploadAndDeployExtension.Page.al @@ -13,6 +13,9 @@ using System.Globalization; page 2507 "Upload And Deploy Extension" { Extensible = false; + ObsoleteReason = 'Use the Business Central admin center to upload and manage per-tenant extensions.'; + ObsoleteState = Pending; + ObsoleteTag = '29.0'; PageType = NavigatePage; SourceTable = "Published Application"; SourceTableTemporary = true; @@ -183,4 +186,3 @@ page 2507 "Upload And Deploy Extension" DisclaimerLbl: Label 'Per-Tenant Extension (PTE) Disclaimer'; IsAccepted: Boolean; } -