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 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”.
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.
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.
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.