Portal Community
What is Variable Assignment?

The Variable Assignment node stores a value — literal, computed, or expression-based — into workflow execution memory under a named key. Once assigned, any downstream node in the same workflow can read the variable using var.variableName. Variables persist for the entire lifetime of the workflow execution unless explicitly removed.

Key Capabilities

Business Benefits

Variable Assignment is one of the most fundamental building blocks in any BizFirst workflow. It provides a clean, explicit mechanism for data plumbing — passing computed results between nodes without relying on chained node outputs alone. By naming values meaningfully (e.g., customerTier, invoiceSubtotal), workflows become self-documenting and easier to maintain.

Teams can avoid duplicating expensive API calls by storing the result once and referencing it multiple times. The node also enables incremental data construction: build a complex object piece-by-piece across multiple assignment steps, then pass the assembled object to an action node.

Common Use Cases

ScenarioHow Variable Assignment Helps
Cache an API responseStore the HTTP response body in a variable so it can be referenced by multiple downstream nodes without re-calling the API.
Running totals in loopsMaintain an accumulator variable across loop iterations — e.g., summing invoice line amounts.
Store user decisionsAfter an approval node, capture the approver's decision and comments for use in downstream notifications.
Conditional branching prepCompute a derived value (e.g., customer tier based on total spend) and store it so the downstream Switch node can branch on it.
Build output objects step by stepIncrementally assemble a complex output payload across several nodes, then pass the fully-built object to a webhook or email node.

In This Guide

Configuration

All properties including variable_name, value, value_expression, and scope options explained with types and defaults.

Input & Output

Output ports (success / error), what gets written to memory, and how to reference assigned variables from other nodes.

Examples

Five real-world examples including literal assignment, expression-based computation, loop accumulators, and null removal.