Working with Process Variables
updated about 2 hours ago
A process variable acts as a placeholder for data when configuring a process. When the process is running, it passes dynamic data between actions.
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:
Creating a process variable
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.
Step 2: Click on the “Add variable” button.
Step 3: Process variable configuration
Step 4: Press Create Variable.
Using Process Variables in process flows
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:
- attributes (for Data models)
- list tag
Process Variables can be inserted into process flow in different ways:
1. Input process variable
2. Output process variable
3. Process variable used within 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 QueryParam in the Call API action:
Example2: amountValue is a process variable in Email Subject: