Salesforce

Using the Environment Variables Repository (Magic xpi 3.x)

« Go Back

Information

 
Created ByKnowledge Migration User
Approval Process StatusPublished
Objective
Description

Using the Environment Variables Repository (Magic xpi 3.x)

The Environment Variables Repository lets you enter new environment variables to use in a project and edit existing environment variables. The Environment Variables Repository has the following tabs:

Name

Description

User

This tab lists environment variables that are entered by the user. You can add new environment variables and delete environment variables. You can also edit environment variables values.

Internal

This tab lists Magic xpi's permanent environment variables. You cannot delete these environment variables. However, you can change the values. You cannot add a new environment variable to the Internal tab.

Note:

Although the values of environment variables can be modified, you should take care not to change the location of the projects folder.

When you add or delete an entry in the Environment Variables Repository, the change is saved to the Magic.ini file.

To add a new environment variable:

  1. From the Project menu, select Environment Variables. The Environment Variables Repository dialog box opens.
    Alternatively, if a project is closed, you can access this repository by opening the Tools menu and selecting Environment Variables.

  2. Click New. The field becomes active with the name Env_NameXX.

  3. Type an environment variable (make sure to delete Env_NameXX), and press TAB.

  4. Type a value (the actual element that the environment variable replaces). The character limit (i.e. value) of an environment variable is 260 characters.

  5. Click OK to add the environment variable to the Magic.ini file.

Note:

The following characters are not supported when you define an environment variable in the Environment Variables Repository:
@ # - & \ / < > { } [ ]( ) , ; " % =


To delete an environment variable:

  1. Select an environment variable from the Environment Variables Repository.

  2. Click Delete to delete the environment variable from the repository.

  3. Click OK to remove the environment variable from the Magic.ini file.

The Save button lets you save your environment variables to a different file. The Load button lets you load previously-created environment variables from existing .ini files, such as the project's ifs.ini file, into the Magic.ini file. It is recommended to save environment variables to the ifs.ini file for deployment purposes.

Note:

You can use the Flow Data Service to update environment variables. The value is only changed for the duration of the current execution, and is not saved when the server stops. The value is recognized by all the steps in the same thread that uses the environment variable.

Reference
Attachment 
Attachment