Skip to main content

Overview

The ENV context exposes metadata about the current workflow run: execution IDs, run timestamps, the trigger type, and the active Workflow environment.

Using workflow metadata in expressions

Access workflow metadata in expressions with:

When to use workflow metadata

Use workflow metadata to:
  • Stamp tickets, alerts, and log entries with ENV.workflow.execution_id so you can trace a record back to the run that created it
  • Branch on ENV.workflow.trigger_type to handle manual runs differently from webhook or scheduled runs
  • Record when a run started with ENV.workflow.start_time

Workflow environment

ENV.environment resolves to the Workflow environment the run executes in, the same environment that scopes secrets and variables.