Accessing Data in n8n

From the n8n cheat sheet ยท Expression Syntax ยท verified Jul 2026

Accessing Data

Expression variables for accessing workflow data

javascript
# Current Item Data (inline expressions)
{{ $json.user.email }}
{{ $json['order']['items'][0]['name'] }}

# Reference Other Nodes
{{ $node["Node Name"].json.field }}
{{ $('Node Name').item.json.field }}
{{ $('HTTP Request').all() }}  // All items

# Workflow & Execution Metadata
{{ $workflow.id }}
{{ $workflow.name }}
{{ $execution.id }}
{{ $execution.mode }}  // 'manual', 'trigger', 'webhook'
๐Ÿ’ก Use $json for inline expressions, $input for Code nodes
โšก $() and $node[] both work for referencing other nodes
๐Ÿ“Œ $execution.mode tells you if manual, trigger, or webhook
๐Ÿ” Always wrap expressions in {{ }} in node fields

More n8n tasks

Back to the full n8n cheat sheet