Enviroment
Global variables are set for each environment such as App, Sandbox, Prod, etc. For example, when integrating with external APIs, the API URL needs to be registered and managed according to each environment. In the development environment, the API should connect to the development environment address of the external API, while in the production environment, it should connect to the production environment address of the external API. Using environment variables in this case allows the API to be connected to the appropriate address according to each environment.
- How to create
In the Object Explorer, click the System Admin > Environment menu.
Click on New in the Code List window to input the code that will be used as an environment variable.
The code being set should be unique and registered as a code that is easy to understand its meaning.
Select the created code in the Code List and click on
New
in theValue List
on the right.Choose the environment where the code will be applied, input the value (such as URL) that should be applied in each environment, and then save it.
This can be applied to the four environments provided by CALS.INFO
When using the configured Environment Code, you use the Code value directly. For example, if the Value of the Code is registered as
GMSComDB
, you can use it in Control's Attribute, etc., as @{ENV.GMSComDB}.