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