Skip to main content

04.4.2 Trigger on Run once

Node Description

Trigger on Run once - an action-type node required to initiate a one-time run of the scenario immediately after clicking the Run once button without passing any data to the scenario.

tip

The Trigger on Run once node does not need to be configured. This node is convenient for testing created scenarios, as it does not require sending requests (like the Trigger on Webhook node) or performing any actions (like most trigger nodes).

Example of Node Usage

For example, to use the When clicking Run once node, let's create a scenario that results in recording the value of a global variable and retrieving that value.

Three nodes need to be added:

  1. Trigger on Run once for a one-time run of the scenario when the Run once button is pressed;
  1. SetGlobalVariables for recording the global variable RunValue and its value, including the current date and time:
  1. Webhook response to retrieve the value of the global variable.

On the first click of the Run Once button:

  • the scenario is executed once. The corresponding entry appears in the scenario run history table;
  • a global variable RunValue is created and its value is determined.

On the second click of the Run Once button:

  • the scenario is executed again. Another entry appears in the scenario run history table;
  • the value of the global variable RunValue is overwritten.