Home > Forum > General > Environment type

Environment type
0

Hi,

Is there a simple way to get which environment runs a process? The data should be one of the 3 possibilities: DEV, TEST, or PROD.
There are many places in Webcon settings where environment is set as "Auto", but I found no variable giving the actual name of the environment.

I know there's a table and inside is a row which offers this, but I thought there might be an environment variable offering this info rather than having another SQL call.

Thank you,
Mihail

MVP
In reply to: Jack

Hi,
I know it's a workaround but you can make a global constant :-)

Hi,

It's great to see, that other's are using the same approach.

Even so it's only a minor addition, but we added also a business rule to simplify this even more. For example we are using this, in the insert condition of a timeout. We have different timeouts depending on the environment. :)

Best regards,
Daniel