Expose AppService location and EUDB membership on Environment Information for internal consumption - #9716
Merged
Conversation
…tion Add GetApplicationServiceLocation() and IsApplicationServiceInEUDB() to the public Environment Information codeunit (and its Impl), wrapping the platform DotNet NavTenantSettingsHelper methods GetAppServiceLocation() and GetAppServiceInEUDB(). This lets apps read the hosting location and EU Data Boundary membership through the managed System Application API instead of referencing the DotNet type directly, which forces target: OnPrem. Draft for discussion. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d33addc7-7b1b-47bd-b3dc-2a723ed7885d
Contributor
There was a problem hiding this comment.
Pull request overview
This PR extends the System Application’s public Environment Information API (codeunit 457) to expose two platform-backed tenant hosting properties—Application Service location and EU Data Boundary (EUDB) membership—via Environment Information Impl. (codeunit 3702), enabling Cloud-targeted apps to read these values without DotNet interop.
Changes:
- Added
GetApplicationServiceLocation(): Textto expose the tenant’s Application Service region string (e.g., “Canada Central”). - Added
IsApplicationServiceInEUDB(): Booleanto expose whether the tenant’s Application Service is within the Microsoft EU Data Boundary. - Implemented both APIs in the internal implementation codeunit by delegating to
NavTenantSettingsHelper.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/System Application/App/Environment Information/src/EnvironmentInformationImpl.Codeunit.al | Adds implementation procedures that call NavTenantSettingsHelper for AppService location and EUDB membership. |
| src/System Application/App/Environment Information/src/EnvironmentInformation.Codeunit.al | Adds two new public procedures (with XML docs) on Environment Information that forward to the implementation codeunit. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Restrict the new Environment Information APIs to Microsoft-published callers and define explicit non-SaaS fallback behavior. Add focused Microsoft and partner caller tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: dcb1f91e-583b-42e0-b3a9-3c9953336fc4
t-prda
marked this pull request as ready for review
July 27, 2026 12:34
t-prda
enabled auto-merge
July 27, 2026 12:34
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: dcb1f91e-583b-42e0-b3a9-3c9953336fc4
MonicaPAhuja
approved these changes
Jul 28, 2026
encimita
approved these changes
Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Environment Information.falseEUDB status outside SaaS infrastructure.IsApplicationServiceInEUDB()returnsfalseboth when outside EUDB and when the information is unavailable.Related work item: AB#643989