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.
If Site.IsProduction = True
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.
IsProductionEnvironment()
Background Context Aware: Retrieve the correct DNS Hostname (GetEnvironmentHostname) even inside Timers and BPT processes where GetRequestDomain() fails.
GetEnvironmentHostname
GetRequestDomain()
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.
IsProductionEnvironment
True/False
GetEnvironmentServerMode: Returns the current mode (e.g., "Development", "Production", "DisasterRecovery") and its internal ID.
GetEnvironmentServerMode
GetEnvironmentServerModes: Returns a list of all possible platform server modes.
GetEnvironmentServerModes
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.
your-env.outsystemsenterprise.com
New features: