Hello,
I’m trying to get all items from all of my boards with the Monday node. For this, I have a first Monday Node to get all my boards. Then, I have another one to get all groups for each board. At this point, everything is fine. But when I want to get every items for each group, it only returns items from the first group.
I used the SplitInBatches Node because I need to reuse the Board ID from the first Node for the two other.
Here’s the output of the “Get all groups” Node:
Here’s the output of the “Get all items” Node:
I only get the items from the “Active Projects” group but not for the “Finished Projects” one and instead I get an error saying “Cannot read property ‘length’ of undefined”.
Do you have any clues how to fix this ?
Hey @Madriax,
Can you please share the workflow? Please replace any sensitive data with dummy data 
Hi @harshil1712,
Here is the workflow. (All the data you see on the screenshots are already dummy data!)
Hey @Madriax,
In the Get all items node, can you try the following expression: {{$item("0").$node["SplitInBatches"].json["id"]}} 
@harshil1712 ,
It works, thank you very much !
I can’t figure out why we need to add $item("0") tho, could you explain it please ?
Hey @Madriax,
Sure! The Get all groups node is returning 2 items, while the Split In Batches node is returning only one item (one item for each batch). For every new iteration, the Get all items node uses a new item. Now, since we have only one Board ID and two different groups, the node gives an error. With $item("0") we ask the node to refer to the same Board ID for different groups.
Let me know if you need more explanation 
@harshil1712 Ok now I understand 
Thank you so much for helping me and taking time to explain it here !
Wonderful! I hope this helps you further too!
Have fun 
I do not think you need the splitbatches node there. n8n automatically over the input items. I think you can simplify the workflow by removing the splitbatches node.
Hi @RicardoE105
When I remove the splitbatches node, I ran into the same problem again. And I can’t use @harshil1712 solution because $item("0") would now only return the first board id, and I have multiple ones.