Set Variable

Created by Reachware Support, Modified on Thu, 2 Apr at 3:03 PM by Reachware Support

Set Variable allows you to create and store values in your flow for reuse in later steps. It's useful for storing calculations, transformations, or intermediate results.

Use Set Variable to:

  • Store calculation results
  • Save transformed data
  • Create reusable values
  • Build complex data structures
  • Preserve values across flow executions

How to Add Set Variable

1

Click the Logic Processor icon between operations

2

Select Set Variable

3

Configure settings

4

Click Save

Configuration

FieldDescriptionRequired
Variable NameName of the variableYes
Variable ValueValue to storeYes

Variable Naming Rules

✓ Must start with:

  • Letter (A-Z, a-z)
  • Underscore (_)

✕ Cannot:

  • Start with a number
  • Contain spaces
  • Include special characters (@, -, #, etc.)

Valid Examples:

customer_total
totalPrice
_tempValue
order123

Invalid Examples:

1value        → Starts with number
total-price   → Contains hyphen

Variable Value

You can set the value to:

  • Mapped data from previous steps
  • Hardcoded values (text, numbers, objects)
  • Handler results (calculations, transformations)
  • Arrays or objects

Using Handlers in Variables

You can use handlers to create complex values.

Example: Calculate total

Variable Name: order_total
Variable Value: sum({{items[].price}})

Related Articles

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article