diff --git a/src/System Application/App/AI/src/Copilot/CopilotAICapabilities.Page.al b/src/System Application/App/AI/src/Copilot/CopilotAICapabilities.Page.al index bec49e0e61..b51294d23f 100644 --- a/src/System Application/App/AI/src/Copilot/CopilotAICapabilities.Page.al +++ b/src/System Application/App/AI/src/Copilot/CopilotAICapabilities.Page.al @@ -243,11 +243,11 @@ page 7775 "Copilot AI Capabilities" var EnvironmentInformation: Codeunit "Environment Information"; WithinGeo: Boolean; - WithinEuropeGeo: Boolean; + WithinEUDB: Boolean; begin OnRegisterCopilotCapability(); - CopilotCapabilityImpl.CheckGeo(WithinGeo, WithinEuropeGeo); + CopilotCapabilityImpl.CheckGeoAndEUDB(WithinGeo, WithinEUDB); case PrivacyNotice.GetPrivacyNoticeApprovalState(CopilotCapabilityImpl.GetAzureOpenAICategory(), false) of Enum::"Privacy Notice Approval State"::Agreed: @@ -266,15 +266,15 @@ page 7775 "Copilot AI Capabilities" if not EnvironmentInformation.IsSaaSInfrastructure() then CopilotCapabilityImpl.ShowCapabilitiesNotAvailableOnPremNotification(); - if (WithinGeo and not WithinEuropeGeo) and (not AllowDataMovement) then + if (WithinGeo and not WithinEUDB) and (not AllowDataMovement) then CopilotCapabilityImpl.ShowPrivacyNoticeDisagreedNotification(); CopilotCapabilityImpl.UpdateGuidedExperience(AllowDataMovement); - //Todo: replace WithinEuropeGeo with WithinEUBD - WithinEUDBArea := WithinEuropeGeo; - WithinAOAIServicesInRegionArea := WithinGeo and (not WithinEuropeGeo); - WithinAOAIOutOfRegionArea := (not WithinGeo) and (not WithinEuropeGeo); + + WithinEUDBArea := WithinEUDB; + WithinAOAIServicesInRegionArea := WithinGeo and (not WithinEUDB); + WithinAOAIOutOfRegionArea := (not WithinGeo) and (not WithinEUDB); end; local procedure UpdateAllowDataMovement() diff --git a/src/System Application/App/AI/src/Copilot/CopilotCapabilityImpl.Codeunit.al b/src/System Application/App/AI/src/Copilot/CopilotCapabilityImpl.Codeunit.al index 46bf32dfaf..af52a26f86 100644 --- a/src/System Application/App/AI/src/Copilot/CopilotCapabilityImpl.Codeunit.al +++ b/src/System Application/App/AI/src/Copilot/CopilotCapabilityImpl.Codeunit.al @@ -241,12 +241,12 @@ codeunit 7774 "Copilot Capability Impl" end; [TryFunction] - procedure CheckGeo(var WithinGeo: Boolean; var WithinEuropeGeo: Boolean) + procedure CheckGeoAndEUDB(var WithinGeo: Boolean; var WithinEUDB: Boolean) var ALCopilotFunctions: DotNet ALCopilotFunctions; begin WithinGeo := ALCopilotFunctions.IsWithinGeo(); - WithinEuropeGeo := ALCopilotFunctions.IsEuropeGeo(); + WithinEUDB := ALCopilotFunctions.IsWithinEUDB(); end; procedure UpdateGuidedExperience(AllowDataMovement: Boolean)