Templates / Create an array of objects

Create an array of objects

Needs changes

by Harshil Agrawal ✓ · 2,655 views · created 2020-11-05 · Engineering

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
Function (legacy)
Mock Data, Create an array of objects
Code node, mode 'Run Once for All Items'

Nodes used (1)

What it does

You can use the Function node to create an array of objects.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.