Create a variable

Important: Agents is currently in private beta and is not yet available to all customers.

You can create variables from:

  • The action configuration panel, when you're configuring an agent action.
  • The toolbar of the Agent 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 agent and agent object variables into a field that accepts variables in the action configuration panel of an action.

Open the action configuration panel:

  1. Go to Agents > All agents.

  2. Open the agent designer:

    1. New agentflow: Click Create agentflow.

    2. Existing agentflow: Select the agentflow you want from the agentflows page.

  3. On the designer canvas, click the action you want to configure.

    You can also click to the right of the action and then select Configure.

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

    The Insert variables panel is displayed.

  5. In the Name field, type the internal name you want to call the variable when designing your agent.
    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

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

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

  8. (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.

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

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

Create a variable from the toolbar

You can create agent and start event variables you want to use for a agent using the Variables option available in the toolbar. After you create a variable, you can use it in configuration fields of actions.

  1. Go to Agents > All agents.

  2. Open the agent designer:

    1. New agentflow: Click Create agentflow.

    2. Existing agentflow: Select the agentflow you want from the agentflows page.

  1. On the toolbar of the Agent Designer, click Variables.

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

  2. In the Name field, type the internal name you want to call the variable when designing your agent.
    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 agent panel.

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

Create a variable from the start configuration panel

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

Open the start event configuration panel:

  1. Go to Agents > All agents.

  2. Open the agent designer:

    1. New agentflow: Click Create agentflow.

    2. Existing agentflow: Select the agentflow you want from the agentflows page.

  3. Click Start event on the designer canvas. The Start event configuration panel is displayed.

  1. Click Create variable.
  2. In the Name field, type the internal name you want to call the variable when designing your agent.
    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. Click Create or Create & insert if you want to use it in an action.