Online Help | Desktop App

Declare Variable

To be able to use a variable it needs to be declared. Once you declared a variable you can use it as a placeholder in other operations and conditions of the Action, Trigger, or Function.

To declare a variable:

  1. In the Name field, type in a name for the variable. The name must be unique within the Action, Trigger, or Function.

  2. Choose the type of data your variable will store.

  3. For the Reference type, select the reference object in the Reference To list. You can also select a group of objects such as All Tickets or a group of configuration entities such as Work Calendars.

  4. Optionally, assign the initial default value for the variable as follows:

    • To enter a static value, select a value from the list, select a date and time from the calendar, or calculate it.

    • To enter text or dynamic value, click the Expression Builder button and use the Build Expression window to type in your text or enter a SQL expression or script. The expression or script must return a single value of the same data type as your variable.

  5. Click OK.