Variable Scope

A flow calculates a context for each action that is executed within it. This context includes all the variables (local, global) and previously run action parameters that the action has access to throughout the execution. This action can use these values within its context to make decisions on how the execution of flow will work or assign values within its context.

Limitations

An action run outside a condition or action branch will not have access to action parameters that were run within the branch.
Figure 1. Sample Flow
Flow with Action outside a condition

In the case above, all actions that run beyond the ‘Create New Folder’ and ‘Set Variables’ actions and are not part of that branch, will not have access to their throughputs and outputs.

Solutions

There are two possible solutions that can be configured.
  1. Create a Local Variable against the flow and assign that variable using a Set Variables action to the throughput/output values of the actions. You can access the local variable from other parts of the flow. For the detailed information, refer to the Using Variables section.
  2. Actions that require access to the throughputs/outputs of these actions must reside in the same branch.

An action does not have access to inputs for previously run actions, only throughputs and outputs.