# Execution flow when node returns list

**URL:** <https://community.n8n.io/t/execution-flow-when-node-returns-list/22386>\
**Category:** Questions\
**Tags:** item-lists\
**Created:** [January 28, 2023, 4:39pm UTC](https://community.n8n.io/t/execution-flow-when-node-returns-list/22386 "2023-01-28T16:39:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fredericolawson](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@fredericolawson](https://community.n8n.io/u/fredericolawson)\
**Post date:** [January 28, 2023, 4:39pm UTC](https://community.n8n.io/t/execution-flow-when-node-returns-list/22386/1 "2023-01-28T16:39:08Z")

</div>

Hello

I am a little unclear how the execution flow works in n8n workflows. My Airtable returns a list of customers. For each customer, I would like to pull some data from Shopify (HTTP node). Then, for each customer, I would like to update the original Airtable record. It looks like the **item lists** node is intended for this, but I am not sure where to insert it. My current workflow throws an error at the final **update Airtable** module, I think because it thinks I am trying to update the field on one Airtable record with an array of values.

Any guidance much appreciated.

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [January 28, 2023, 4:40pm UTC](https://community.n8n.io/t/execution-flow-when-node-returns-list/22386/2 "2023-01-28T16:40:24Z")

</div>

Hey @fredericolawson,

Don’t forget to fill out the template 🙂

What error are you getting from the node?

---

<div class="post-metadata">

**Author:** ![fredericolawson](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@fredericolawson](https://community.n8n.io/u/fredericolawson)\
**Post date:** [January 28, 2023, 4:58pm UTC](https://community.n8n.io/t/execution-flow-when-node-returns-list/22386/3 "2023-01-28T16:58:13Z")

</div>

Hi @Jon

The error I get on my **update customer record** node is below. My best guess is it’s because I am trying to update a single Airtable record with an array of values - where instead I want to be updating a series of Airtable records with a string value. My mental reference is using [make.com](http://make.com), where, when a node returns a list of values, the workflow will iterate through each item in the list - but that doesn’t seem to be how n8n works?

Thanks

 ![Screenshot 2023-01-28 at 16.54.27](https://europe1.discourse-cdn.com/n8n/original/3X/9/4/94bd85d7b35d5963a277a8fe87b04d525427b988.jpeg)

---

<div class="post-metadata">

**Author:** ![Niklas\_Hatje](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/niklas_hatje/32/155398_2.png) [@Niklas\_Hatje](https://community.n8n.io/u/Niklas_Hatje)\
**Post date:** [January 31, 2023, 4:01pm UTC](https://community.n8n.io/t/execution-flow-when-node-returns-list/22386/4 "2023-01-31T16:01:05Z")

</div>

Hi @fredericolawson, your mental modal is correct: n8n does iterate over each node for every item. I think what’s wrong with your node here might be that the data type is not fitting to how you set your AT up maybe? Maybe the customer ID in your flow is a string and AT only accepts a number (or vice-versa).

---

<div class="post-metadata">

**Author:** ![fredericolawson](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@fredericolawson](https://community.n8n.io/u/fredericolawson)\
**Post date:** [January 31, 2023, 4:13pm UTC](https://community.n8n.io/t/execution-flow-when-node-returns-list/22386/6 "2023-01-31T16:13:56Z")

</div>

@Niklas_Hatje you were completely right, thank you!!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [May 1, 2023, 4:14pm UTC](https://community.n8n.io/t/execution-flow-when-node-returns-list/22386/7 "2023-05-01T16:14:49Z")

</div>

Closed on May 1, 2023, 4:14pm UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
