Blocks

Variable

Store and manage variables

Store, retrieve, and manipulate variables within your workflow. Supports different data types, operations like increment/decrement, and variable scoping for complex workflows.

Back to Catalog
Core Blocksvariable

Block Preview

Variable

Store and manage variables

Usage

  1. Add the block to your workflow and connect it to the upstream step.
  2. Configure any required credentials or tokens in the inputs.
  3. Fill in required inputs and optional parameters for the run.
  4. Run a test execution, inspect outputs, and iterate before deploying.
  5. Deploy the variable block with monitoring enabled in production.

Inputs (UI)

Operation

dropdown

Layout: half

Options: Set Variable, Get Variable, Increment, Decrement

Variable Name

short-input

Placeholder: userCount, totalSales, currentUser

Layout: half

Variable Value

long-input

Placeholder: Hello World, 42, {"name": "John", "age": 30}, [1, 2, 3]

Layout: full

Condition: operation = ["set","append","prepend"]

Data Type

dropdown

Layout: half

Condition: operation = ["set"]

Options: Auto Detect, String, Number, Boolean

Increment By

short-input

Placeholder: 1

Layout: half

Condition: operation = ["increment","decrement"]

Variable Scope

dropdown

Layout: half

Options: Workflow, Global, Session, Temporary

Default Value

short-input

Placeholder: 0, "", null, []

Layout: half

Condition: operation = ["get","increment","decrement"]

Persistent

switch

Save variable across workflow runs

Layout: half

Encrypted

switch

Encrypt sensitive variable data

Layout: half

Inputs (API)

operation

string

Optional

variableName

string

Optional

variableValue

string

Optional

dataType

string

Optional

incrementValue

number

Optional

scope

string

Optional

defaultValue

string

Optional

persistent

boolean

Optional

encrypted

boolean

Optional

Outputs

Primary response type:

{
  "content": "string",
  "variableName": "string",
  "variableValue": "json",
  "variableType": "string",
  "operation": "string",
  "previousValue": "json"
}

Tool Access

variable_manager
Variable | NowFlow Blocks