Overview
TheENV 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_idso you can trace a record back to the run that created it - Branch on
ENV.workflow.trigger_typeto 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.
Related pages
- See the Workflow metadata cheatsheet for the
ENVfield reference. - See Expressions for expression syntax and the other contexts.
- See Secrets for how the Workflow environment scopes credentials.