Hello there,
Once upon a time, we looped like this:
for (i=0; i< somevalue; i++) {
do stuff;
}
While the data in the loop was not available below it, the data prior to the loop was available inside the loop.
I have a nested loop and the consequences of data not getting pushed forward is catastrophic.
The n8n AI assures me that all I need is a merge, or a summarizer, and by the way I have to uplevel nested data using set nodes because the iterator can’t see past the first level of nested incoming data.
All I’m trying to do is loop through youtube playlists, then for each playlist, gather all video titles and descriptions. I want each playlist and its associated video titles/descriptions to feed into the next step as packets.
The output is hundreds of videos instead of a set of playlists and associated videos.
The AI tells me I’m getting 352 items instead of 11 packets is because the inner video loop has lost access to the outer loop playlist ids.
I did a search and saw someone discussing sub workflows, which kind of blew my mind as separating the logic paths solving this missing data seems implausible.
As I said to the AI, this seems like a major N8N architecture speed bump.
SURELY there is a standard procedure for
for (i=0; i< SOMETHING; i++) {
for (j=0; j< SOMETHINEELSE; j++)
}}
That was stable 30 years ago. But looping over videos is apparently impossible today.
Tell me there’s a standard procedure for this kind of looping?
Thank you and gratefully,
Caroline
