environment-information
Service icon

Environment Information

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 01 May 2021
 by 
1.0
 (1 rating)
environment-information

Environment Information

Documentation
1.0.0

In order to work, you must configure the EnvQuery to each of your environment's server names.

After installing the Environment Information component you can call the service "WhereAmI" to get a struct that is

  • DatabaseName
  • EnvironmentName
  • ServiceName
  • Version


You can use these to dynamically evaluate components as the application moves through the Dev, Test, Prod lifecycle.


TIPS & TRICKS
Simply replace outsystems_DEV with the name of your Dev server and outsystems_QA with the name of your QA or TEST environment
For expanded use, you can also replace them with input params, e.g. when @@servername = ' + In1 + ' then ''DEV''
The default is PROD if no matching case is found
If you have more than DEV and QA, you can add an additional WHEN: e.g. when @@servername = ''outsystems_other'' then ''other''

TROUBLESHOOTING:
If you are not seeing expected results, @@servername can be replaced with DB_NAME() function this will most likely be the case for Dev environments vs QA environments
Best used in an OnPrem solution

Enjoy!