environment-info
Service icon

Environment Info

Stable version 1.1.0 (Compatible with OutSystems 11)
Uploaded
 on 4 Jan (yesterday)
 by 
5.0
 (2 ratings)
environment-info

Environment Info

Details
Instantly detect Production, grab Hostnames, and adapt your logic automatically. The zero-effort way to build safer, environment-aware apps.
Read more

Stop Guessing Where Your Code Is Running.

Hardcoding environment checks (like If Site.IsProduction = True) is risky and hard to maintain. Environment Info gives your application the intelligence to self-detect its runtime environment directly from the platform's core.

Whether you need to prevent test data from polluting your Production database or need the correct server hostname for an email link generated in a Timer, this extension provides the standard, safe, and lightweight utilities you need.

Why You Need This?

  • Fail-Safe Logic: Protect critical processes by checking IsProductionEnvironment() before execution.

  • Background Context Aware: Retrieve the correct DNS Hostname (GetEnvironmentHostname) even inside Timers and BPT processes where GetRequestDomain() fails.

  • Zero Configuration: Works out-of-the-box by reading the internal Platform settings. No site properties or manual configuration required.

Key Features

  • IsProductionEnvironment: Returns a simple True/False. Perfect for disabling logic that you don't want to run in a production environment.

  • GetEnvironmentServerMode: Returns the current mode (e.g., "Development", "Production", "DisasterRecovery") and its internal ID.

  • GetEnvironmentServerModes: Returns a list of all possible platform server modes.

  • GetEnvironmentHostname: Fetches the environment’s default DNS name (e.g., your-env.outsystemsenterprise.com), ensuring broken links in Timers and BPTs are a thing of the past.


Release notes (1.1.0)

New features:

  • GetEnvironmentKey: Retrieves the key of the current running environment.
  • GetEnvironmentName: Retrieves the name of the current running environment.
License (1.1.0)
Reviews (1)
by 
4 Jan (14 hours ago)
in version 1.0.0
The XIF is very useful, as it allows extending the platform’s capabilities
Team
Other assets in this category