codeunitAdministration & Setupofficial - Microsoftderived - from the source, no model text

Codeunit 457 "Environment Information"

System Application · System.Environment

Across versions

  1. BC23present
  2. BC241 procedures added
  3. BC25unchanged
  4. BC261 procedures added
  5. BC27unchanged
  6. BC283 procedures added
  7. BC29unchanged
  8. BC302 procedures added

Neighbourhood 256 connected objects and pages

Codeunit 3702 "Environment Information Impl." (calls, 15 links)Environment Information Impl.Codeunit 7201 "CDS Integration Impl." (calls, 12 links)CDS Integration Impl.Codeunit 9994 "API Data Upgrade" (calls, 10 links)Codeunit 9510 "Document Service Management" (calls, 8 links)Document Service ManagementCodeunit 104000 "Upgrade - BaseApp" (calls, 5 links)Codeunit 1309 "O365 Getting Started Mgt." (calls, 5 links)O365 Getting Started Mgt.Codeunit 1430 "Role Center Notification Mgt." (calls, 5 links)Codeunit 4700 "VAT Group Communication" (calls, 5 links)VAT Group CommunicationCodeunit 6941 "EA Http Client" (calls, 5 links)Codeunit 104030 "Upgrade Plan Permissions" (calls, 4 links)Upgrade Plan PermissionsCodeunit 1432 "Satisfaction Survey Impl." (calls, 4 links)Satisfaction Survey Impl.Codeunit 1686 "Email Logging OAuth Client" (calls, 4 links)Email Logging OAuth ClientCodeunit 6710 "ODataUtility" (calls, 4 links)ODataUtilityPage 6991 "Expense Agent Setup Wizard" (calls, 4 links)Codeunit 1410 "Doc. Exch. Service Mgt." (calls, 3 links)Doc. Exch. Service Mgt.Codeunit 1489 "Edit in Excel Workbook Impl." (calls, 3 links)Edit in Excel Workbook Impl.Codeunit 153 "User Permissions Impl." (calls, 3 links)User Permissions Impl.Codeunit 1814 "Assisted Setup Subscribers" (calls, 3 links)Codeunit 2518 "AppSrc Product Deps. Provider" (calls, 3 links)AppSrc Product Deps. ProviderCodeunit 3305 "Payables Agent Upgrade" (calls, 3 links)Codeunit 418 "User Management" (calls, 3 links)User ManagementCodeunit 4507 "Email - OAuth Client" (calls, 3 links)Codeunit 5585 "Digital Voucher Feature" (calls, 3 links)Codeunit 8611 "Config. Package Management" (calls, 3 links)Codeunit 9175 "User Settings Impl." (calls, 3 links)Page 9037 "Accountant Activities" (calls, 3 links)Codeunit 1545 "Workflow Webhook Notification" (calls, 2 links)Codeunit 20105 "AMC Banking Mgt." (calls, 2 links)Codeunit 40030 "Table and Field Move Mappings" (calls, 2 links)Codeunit 40035 "OnPrem Migration Handler" (calls, 2 links)Codeunit 4353 "Agent Designer Environment" (calls, 2 links)Codeunit 4509 "Email - Outlook API Helper" (calls, 2 links)Codeunit 4589 "SOA Upgrade" (calls, 2 links)Codeunit 50 "SaaS Log In Management" (calls, 2 links)Codeunit 6400 "Flow Service Management" (calls, 2 links)Codeunit 7203 "CDS Environment" (calls, 2 links)Codeunit 7499 "Item From Picture" (calls, 2 links)Codeunit 7774 "Copilot Capability Impl" (calls, 2 links)Codeunit 8351 "MCP Config Implementation" (calls, 2 links)Codeunit 9002 "Permission Manager" (calls, 2 links)

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

System Application · System.Environment · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
Access Public
SingleInstance true

Procedures

  • IsProduction(): Boolean: Checks if environment type of tenant is Production.
  • GetEnvironmentName(): Text: Gets the name of the environment.
  • IsSandbox(): Boolean: Checks if environment type of tenant is Sandbox.
  • IsSaaS(): Boolean: Checks if the deployment type is SaaS (Software as a Service).
  • IsOnPrem(): Boolean: Checks the deployment type is OnPremises.
  • IsFinancials(): Boolean: Checks the application family is Financials.
  • IsSaaSInfrastructure(): Boolean: Checks if the deployment infrastucture is SaaS (Software as a Service). Note: This function will return false in a Docker container.
  • IsPreview(): Boolean + BC28: Checks if the ring is preview.
  • IsEarlyPreview(): Boolean + BC28: Checks if the ring is early preview.
  • ShowEarlyPreviewNotification() + BC28: Shows a notification if the ring is early preview.
  • GetApplicationFamily(): Text: Gets the application family.
  • VersionInstalled(AppID: Guid): Integer: Gets the version which a given app was installed in.
  • CanStartSession(): Boolean: Checks if a new session can be started via the Session.StartSession call.
  • EnableM365Collaboration(): Sets M365 Collaboration to enabled in the tenant admin center
  • GetLinkedPowerPlatformEnvironmentId(): Text + BC24: Gets the linked Power Platform environment id.
  • GetEnvironmentSetting(SettingName: Text): Text + BC26: Gets the value of the specified environment setting. This is only callable from Microsoft published apps.

Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.

Called by

Recent changes

Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Environment Information"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources