Create a variable

You can create variables from:

  • The action configuration panel, when you're configuring a workflow action.
  • The toolbar of the workflow designer.
  • The start event configuration panel when you're configuring the start event.

Create a variable from the action configuration panel

You can create and insert workflow and workflow object variables into a field that accepts variables in the action configuration panel of an action.

  1. In a field that accepts variables, click + Insert or Add variable from the drop-down list.

    The Insert variables panel is displayed.

  2. In the Name field, type the internal name you want to call the variable when designing your workflow.
    Note: 

    Variables names must adhere to the following naming conventions to support localization:

    • Must be at least 1 non-whitespace character.

    • Cannot contain newline or paragraph characters.

    • Cannot contain HTML as it contains unsupported characters like <, >, and /.

    • Cannot begin with a number.

    • Cannot contain any of the following characters: +, -, !, *, ", /, >, >=, <, <=, =, ==, !=, &, &&, |, ||, ., , (comma), [, ], (, ), and \n

  3. In the Type field, select a variable type corresponding to the type of data you want to store. See Variable data types.

  4. (Optional) If you want to provide a default value for the variable, enter the value in the Default value field.

  5. (Optional) If you want to set the default value of the variable to null, click in the Default value field and select Set value as null.

  6. (Optional) Select the Allow external configuration check box to enable changing the variable's value through the Configure workflow panel.

  7. (Optional; not applicable to start event variables) For Component workflows A workflow that can be started from outside the tenancy; the workflow uses the "Component workflow" start event.: To mark the variable as a workflow output Variable to store a value or file on completion of the workflow. Set up as a user-defined variable., select the check box for Output.

    Note: The Output check box is only available when the workflow's selected Start event is Component workflows.

  8. Click Create or Create & insert if you want to use it in an action.

Create a variable from the toolbar

You can create workflow and start event variables you want to use for a workflow using the Variables option available in the toolbar. You cannot create workflow object variables from the toolbar; for more information on using workflow object variables, see Workflow object variable. After you create a variable, you can use it in configuration fields of actions.

  1. On the toolbar of the Workflow designer, click Variables.

    The Variables panel is displayed. The Workflow tab is selected by default.

  2. In the Name field, type the internal name you want to call the variable when designing your workflow.
    Note: 

    Variables names must adhere to the following naming conventions to support localization:

    • Must be at least 1 non-whitespace character.

    • Cannot contain newline or paragraph characters.

    • Cannot contain HTML as it contains unsupported characters like <, >, and /.

    • Cannot begin with a number.

    • Cannot contain any of the following characters: +, -, !, *, ", /, >, >=, <, <=, =, ==, !=, &, &&, |, ||, ., , (comma), [, ], (, ), and \n

  3. In the Type field, select a variable type corresponding to the type of data you want to store. See Variable data types.

  4. (Optional) If you want to provide a default value for the variable, enter the value in the Default value field.

  5. (Optional) If you want to set the default value of the variable to null, click in the Default value field and select Set value as null.

  6. (Optional) Select the Allow external configuration check box to enable changing the variable's value through the Configure workflow panel.

  7. (Optional; not applicable to start event variables) For Component workflows A workflow that can be started from outside the tenancy; the workflow uses the "Component workflow" start event.: To mark the variable as a workflow output Variable to store a value or file on completion of the workflow. Set up as a user-defined variable., select the check box for Output.

    Note: The Output check box is only available when the workflow's selected Start event is Component workflows.

  8. Click Create or Create & insert if you want to use it in an action.

Create a variable from the start configuration panel

The Nintex - Component workflow start event allows you to create start event variables in the Start event configuration panel. You can use these variables to capture required workflow inputs (files or other data needed to start the workflow).

  1. On the canvas, click Start event.

    The Start event configuration panel is displayed.

  2. Click Create variable.
  3. In the Name field, type the internal name you want to call the variable when designing your workflow.
    Note: 

    Variables names must adhere to the following naming conventions to support localization:

    • Must be at least 1 non-whitespace character.

    • Cannot contain newline or paragraph characters.

    • Cannot contain HTML as it contains unsupported characters like <, >, and /.

    • Cannot begin with a number.

    • Cannot contain any of the following characters: +, -, !, *, ", /, >, >=, <, <=, =, ==, !=, &, &&, |, ||, ., , (comma), [, ], (, ), and \n

  4. In the Type field, select a variable type corresponding to the type of data you want to store. See Variable data types.

  5. Click Create or Create & insert if you want to use it in an action.