n8n LabAdvanced

Collect Values from All Input Items in an n8n Code Node

Several leads arrive as separate items. Build one array of emails to send in a single API call.

Live Execution Simulator Idle
πŸ“₯
Incoming Data
βš™οΈ
n8n Node
🎯
Next Step
> Ready. Type your expression below and click "Check Answer" to run the node.

Incoming Payload / Data:

// Incoming items (each has .json):
[
  { "json": { "email": "[email protected]" } },
  { "json": { "email": "[email protected]" } }
]
$input.all().

βš™οΈ Your expression is executed against test data β€” any correct solution passes. +30 XP

Related labs