Looking to take data which comes from a shopify paid order and place that data into a spreadsheet.
The challenge comes in from shopify data coming via an array… one data package which might contain mulitple items in one order.
I can get as far as this code which partly works:
{{ $json[“line_items”][1][“name”] }} Qty:{{ $json[“line_items”][1][“fulfillable_quantity”] }}
This returns the item and quantity of an individual item in the array, in the above code the array item 1.
In this particular order there are 3 items, so 3 items in the array which I want to display all of them not just the one.
So need a loop and a variable in the code which is updated for each item in the array. Is this possible through this section of the tool.
Information on your n8n setup
- **n8n version: 1.38.2
- **Database (default: SQLite)
- **n8n EXECUTIONS_PROCESS setting (default: own, main)
- **Running n8n via n8n cloud
- **Operating system: Mac OSX
