Question
Adrian Izadpanah · Apr 19

Create a variable to check if on test or live environment

Hi all,

I need some help in studio.

Is there a way to create a variable to determine if it is in the test or live environment?

Thanks

Adrian

 

Product version: HealthShare 2020.1
00
2 0 7 107
Log in or sign up to continue

Please explain what you mean by "create a variable"?

So create a context.variable which would be either set to LIVE or TEST depending on what environment it is on?

Hope that makes sense

Are you asking how to check a global to see if the system is Dev/Test/Production as per the "System Mode" dropdown in the "Memory and Startup" page in the SMP?

 

If so, then this is stored in the following global:

^%SYS("SystemMode")

It should have values like "DEVELOPMENT", "TEST" and "LIVE"