A process variable acts as a placeholder for data that can be accessed throughout the lifecycle of a process. When the process is running, it passes dynamic data between actions. It is how data is transferred between actions in a process.
For example, in an action that calls an API, you can store the data in a process variable called <%clientsEmails%>. Later in the process, in an action the sends emails, you can reference the <%clientsEmails%> process variable and use the data to send emails to those clients.
A process variable has the following properties:
Go to the Process Designers section and open a new or an existing process.
Step 1: On the process page, click on the Process Variables icon (x).
Step 2: Click on the Add variable button.
Step 3: Process variable configuration
Step 4: Press Create Variable.
When configuring an action you can insert process variables in inputs by pressing "#" or by clicking on "Add variable". Both will generate the Process Variables selector from where you can select the process variable you want to use.
For each Process Variable you can see:
Process Variables can be inserted into the process flow for different purposes:
1. Input process variable
2. Output process variable
3. Process variable used within the process to pass dynamic data between actions
They can be easily identified in Process Variables list:
Whenever you use process variables in configuration, it is easy to visually differentiate values from process variables. Process variables are in a colored pill, unlike values:
Example1: <%customerAddress%> is a process variable sent as QueryParams in the Call API action:
Example2: <%amountValue%> is a process variable in Email Subject: