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 5ddd7f6262..6a442e367f 100644 --- a/src/System Application/App/AI/src/Copilot/CopilotAICapabilities.Page.al +++ b/src/System Application/App/AI/src/Copilot/CopilotAICapabilities.Page.al @@ -250,11 +250,11 @@ page 7775 "Copilot AI Capabilities" var EnvironmentInformation: Codeunit "Environment Information"; WithinGeo: Boolean; - WithinEuropeGeo: Boolean; + WithinEUDB: Boolean; begin OnRegisterCopilotCapability(); - CopilotCapabilityImpl.CheckGeo(WithinGeo, WithinEuropeGeo); + CopilotCapabilityImpl.CheckGeoWithEUDB(WithinGeo, WithinEUDB); case PrivacyNotice.GetPrivacyNoticeApprovalState(CopilotCapabilityImpl.GetAzureOpenAICategory(), false) of Enum::"Privacy Notice Approval State"::Agreed: @@ -274,17 +274,16 @@ 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); HasEarlyPreview := HasEarlyPreviewCapabilities(); - //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 HasEarlyPreviewCapabilities(): Boolean