From b3a8b1023934fbae2cbc461cfd7acb2eb6656db3 Mon Sep 17 00:00:00 2001 From: Cody Hoover Date: Mon, 1 Jun 2026 20:08:57 +0200 Subject: [PATCH] Expose tenant Azure EUDB via Server Setting Adds GetIsTenantInEUDB() to the public Server Setting (6723) codeunit and its Server Setting Impl. (3703) backing, wrapping the new ALConfigSettings.IsTenantInEUDB() platform method. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../App/Server Settings/src/ServerSetting.Codeunit.al | 9 +++++++++ .../Server Settings/src/ServerSettingImpl.Codeunit.al | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/src/System Application/App/Server Settings/src/ServerSetting.Codeunit.al b/src/System Application/App/Server Settings/src/ServerSetting.Codeunit.al index 8b7b60e495..f619670275 100644 --- a/src/System Application/App/Server Settings/src/ServerSetting.Codeunit.al +++ b/src/System Application/App/Server Settings/src/ServerSetting.Codeunit.al @@ -112,5 +112,14 @@ codeunit 6723 "Server Setting" begin exit(ServerSettingImpl.GetEnableMembershipEntitlement()); end; + + /// Returns whether the tenant's hosting Azure geography is within the Microsoft EU Data Boundary. + /// True if the tenant is in the EU Data Boundary; otherwise false. + /// Backed by ServerUserSettings.AzureGeography on the BC platform. This is independent from the Copilot/CAPI-level EUDB check and may legitimately differ from it. + [Scope('OnPrem')] + procedure GetIsTenantInEUDB(): Boolean + begin + exit(ServerSettingImpl.GetIsTenantInEUDB()); + end; } diff --git a/src/System Application/App/Server Settings/src/ServerSettingImpl.Codeunit.al b/src/System Application/App/Server Settings/src/ServerSettingImpl.Codeunit.al index 996651ccd9..b82f37aafc 100644 --- a/src/System Application/App/Server Settings/src/ServerSettingImpl.Codeunit.al +++ b/src/System Application/App/Server Settings/src/ServerSettingImpl.Codeunit.al @@ -98,5 +98,11 @@ codeunit 3703 "Server Setting Impl." InitializeConfigSettings(); exit(ALConfigSettings.IsSaaS()); end; + + procedure GetIsTenantInEUDB(): Boolean + begin + InitializeConfigSettings(); + exit(ALConfigSettings.IsTenantInEUDB()); + end; }