Use variables
Depending on the action and/or operation you are defining in a flow, there are several ways you can add global and local variables to your flow.
Connection variables are only available for action nodes. When an action node needs a cloud connection, choose a connection variable from the Connection variables section on a node's Connection tab. See Use a connection variable in an action node.
Add variables to parametersβ
You can use variables in action nodes.
Connection variables are not supported in node parameters.
-
Add an action node to your flow (or edit an existing one).
-
Depending on the parameters available for the action, select the plus button (+) next to the parameter where you want to add a variable.
-
Select Variables and expand Global Variables or Local Variables, depending on your requirements, and select the variable you want.

For parameters that expect a map (key-value structure), you can reference a variable or output from a previous node that contains the whole map. The flow uses the entire map at runtime, so you do not have to enter each key-value pair manually.
Add a connection variable in an action nodeβ
A connection variable is a variable whose value is one of your organization's AWS or GCP connections. Action nodes can use that variable in the node's Connection tab instead of picking a connection separately on every node. You update the connection in one place, which makes flows easier to reuse across accounts or environments and saves you from editing each action when the target connection changes.
Connection variables can only be used in action nodes. They are not available for use with other nodes.
-
Create a variable with Type connection.
-
Add an action node to your flow (or edit an existing one).
-
Select the node's Connection tab.
-
Expand the Connection dropdown. A Connection variables section is displayed.

The connections available match the action you are configuring. For example, for AWS actions only AWS connection variables are shown.
-
Under Connection variables, select the global or local connection variable you want.

Filter using variablesβ
You can filter on variables in a flow.
-
Add a Filter node to your flow (or edit an existing one).
-
Select +Add a new filter (or edit an existing one).
-
Select the plus (+) button next to Value.
-
Select Variables and expand Global Variables or Local Variables, depending on your requirements, and select the variable you want.

Add variables to messagesβ
If you have an action node that requires approval, you can add variables to the notification message that requests approval for an action.
-
Add a node that requires approval to your flow (or edit an existing one).
-
In Parameters, select Require approval for this action.
-
In Message, enter your message. Whereever you want to add a variable, select the plus button (+).
-
Select Variables and expand Global Variables or Local Variables, depending on your requirements, and select the variable you want to add to the message.
