Action flows

Action flows are sets of actions within Nintex Apps used to interact with data, user interface, connections, and page logic. Action flows can be triggered from a variety of areas, such as buttons, row actions, model actions, and component interactions.

Some common action flow examples include:

  • A single button in a popup that both saves model data and closes the popup.
  • A row action that opens a popup, applies specified model conditions, and updates fields—all with one click.
  • A button that toggles a component on or off, or opens and closes a sliding panel.
  • An action flow that creates a document in the cloud, sends an email, and updates a connected record.

Important: Context is important when working with actions. The place an action is triggered from determines which record or records it will affect.

One-off actions

One-off actions are created directly from an interaction in the Page Designer. They contain only one action and are available from the interaction where they were created.

If you need to add additional actions or reuse the action, you can convert the one-off action to an action flow. The converted action flow appears in the action flows list, where you can manage it like other action flows. For more information, see Add a one-off action.

Access action flows

  • In the Page Designer, in the Elements panel, click Action flows.

    The action flow canvas displays. The left panel displays the page's action flows. You can view, add, organize, and search for action flows from this panel. When you open an action flow, the left panel displays the available actions. You can drag actions from this panel onto the drop targets in the canvas. The canvas visually displays the action flow. At the top of the canvas, the number of triggers indicates the interactions that start an action flow.

  • Note: One-off actions created directly from component interactions are not displayed in the action flows list. To access these actions, navigate to the interaction where the action was created. For more information, see Add a one-off action.

Work with action flows

Input variables

Input variables allow each trigger for an action flow to have different values. Each time the action flow is called, the various input variables can be set.

To add input variables to an action flow

  1. In the Settings panel, click + (Plus) next to Input variables. Or, click Add variable.
  2. Enter the variable's Name and Type.

To use the value of an input variable within the action flow—for example, to use a Value-type input within a Model Condition-type input—use the name of your variable, namespaced within $Input, in merge syntax.

For example: {{$Input.TheInputVariableToUse}}

Note: Ensure that $Input is capitalized.

Whenever the action flow is attached to a trigger, like a component interaction or a model action, the input variables will appear. Input variables can be populated with values from the model or component triggering the action or with hard-coded values.

Named results

You can use the result of an action in subsequent flow actions via the $Result merge variable. The format of the result object depends on the action, and the named result is only available for subsequent actions in the flow. Named results are commonly seen in Model Data Changes Actions, Model Conditions / Querying Actions, and Nintex Workflow Connector actions.

Note: $Output, the previous namespace for accessing named results, is deprecated but remains accessible for backwards compatibility. Update existing references to $Result.

Trigger action flows with keyboard shortcuts and events

You can set triggers for action flows using:

  • Keyboard shortcuts

  • Events

The number of triggers in an action flow is displayed at the start of the action flow. This includes interactions that trigger actions.

Add a trigger in an action flow

In the Triggers section of the Settings panel, click Add keyboard shortcut or Add event.

Edit a trigger in an action flow

In the Triggers section of the Settings panel, click an event or keyboard shortcut to edit it.

Delete a trigger in an action flow

  1. In the Triggers section of the Settings panel, next to the trigger, click More options.

  2. Select Delete.

Trigger actions with interactions

Interactions can trigger one-off actions or action flows. You can configure interactions on pages and components, as well as model actions.

You can set action triggers:

  • On the page through end user interactions (clicks and right-clicks).
  • On components through component interactions.

  • On models using model actions.

Triggers for action flows are displayed in the Settings panel on the right of the action flow canvas. To navigate to the corresponding element in the Page Designer, next to the trigger, click .

Tip: Setting a custom unique-ID property for a component makes it easier to see which components trigger which actions.