In eADM, you can use dynamic variables when configuring rulesets, message templates, and export templates. A dynamic variable is a placeholder that is replaced with a generated value when a rule or template is executed.
What are dynamic variables?
A dynamic variable can be either an attribute or a function.
-
Attribute: Refers directly to the value of an attribute on an object (e.g., a user's first name).
-
Function: Takes one or more parameters and generates a new value based on them. Parameters can be static text, numbers, or even other dynamic variables.
The available attributes are determined by the object type (user, group, or department), although some attributes are common to multiple types.
Note:
-
First Nameis available only for user objects. -
Nameis available for group and department objects (but not users). -
Descriptionis available for all object types.
How to Use Dynamic Variables
You can insert dynamic variables using a dropdown menu or by typing directly into a text field. For example, you can select a department number as Department Number from a dropdown menu or typed as [DepartmentNumber] in a text field.
Text Format
In any supported text field, you can manually add a dynamic variable.
-
Type an opening square bracket
[to begin. The closing bracket]will be added automatically. -
With the cursor between the brackets, a list of available variables will appear.
-
The list is sorted alphabetically and filters as you type. For example, typing "dep" will display all variables that contain that text.
-
Use the
↑and↓arrow keys andEnterto select a variable, or scroll and click with the mouse. PressEscto close the list.
Warning: When using the text format, all dynamic variables must be enclosed in square brackets []. Functions must must always be written in plain text and enclosed in square brackets [].
Examples:
-
Attribute:
[first name] -
Function:
[IFEMPTYUSE;[workphone];[mobile]]
Expressions
An expression is a text string that combines one or more dynamic variables with static text to produce a single result. Expressions can range from simple to highly complex.
|
Expression |
Description |
Example of Generated Value |
|---|---|---|
|
|
A single attribute. |
|
|
|
Two attributes separated by a space. |
|
|
|
Static text combined with two attributes. |
|
|
|
A function that takes a single attribute as its parameter. |
|
|
|
A function with multiple parameters, including an attribute. |
|
|
|
A nested expression using multiple functions and attributes. |
|
The Expression Builder
To create complex expressions with nested functions or to test how an expression will behave, you can use the Expression Builder. It is available for any text field that supports dynamic variables, as indicated by a button next to the field.
The Expression Builder includes the following tools:
-
Expression: A text field for building your expression, with full support for the autocomplete functionality described above.
-
Discard changes: A button that reverts any edits made since the builder was opened.
-
Evaluation: A preview pane displaying the generated output of the expression for a selected object.
-
Select [Object]: Opens a dialog box to search for and select a specific object (e.g., a user) to use for the evaluation.
-
Select random [Object]: Automatically selects a random object of the correct type to use for the evaluation.