- 04 Sep 2024
- 1 Minute to read
- DarkLight
Global Variables
- Updated on 04 Sep 2024
- 1 Minute to read
- DarkLight
General
Global variables allow you to specify Expressions which can be accessed from any other expression in Mail & Deploy.
Example: You can create a global variable that holds the root directory path to save report documents to. Every Save Content To File System Action can access that global variable in order to save reports in that directory (or a sub-directory thereof). If the directory changes you only need to change it once in the global variable.
Properties
Every global variable has the following properties:
Name | Description |
---|---|
Name | The name of the global variable. |
Value | An Expressions that returns the value of the global variable. This expression must not contain Placeholders except for Global Variable Value Placeholders referencing other global variables; however you need to make sure that there are no circular references between global variable values. |
Managing Global Variables
There are two ways to manage global variables:
Management Service
You can connect to the Management Service of Mail & Deploy and click the Variables item in the main menu. This will provide you with a list of all global variables; you can edit or delete existing global variables or create new ones.
Report Designer
You can also edit global variables from the Report Designer by clicking the button in the main toolbar:
Button to manage Global Variables in the Report Designer