Question Adrian Izadpanah · Apr 19, 2021

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

Comments

John Murray · Apr 19, 2021

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

0
Adrian Izadpanah  Apr 19, 2021 to John Murray

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

0
Adrian Izadpanah  Apr 19, 2021 to John Murray

Thanks for the link, thats helped alot!

0
Ben Spead · Apr 19, 2021

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"

0