Pcornel
Automation · n8n

Expressions

Cheat sheet · https://pcornel.dk/topic.php?topic=5580

Back to the Topic

Answer

n8n expressions are JavaScript snippets in {{ }} that read data from previous nodes, such as {{ $json.email }} or {{ $('HTTP Request').item.json.id }}, to build dynamic values.

Remember

  • Expressions are JavaScript in {{ }}.
  • Use $json and $('Node') to read data.
  • Test them in the editor.

First checks

  • {{ $json.field }} / {{ $('Node').item.json.x }} — expression examples
  • Expression preview in editor — testing
  • Null-safe access — robustness

Verify in this order

item data → expression → value

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5580

Confirmation

Confirm action

Continue?