Problem with Loop over multiple mail one at a time (Outlook) - N8N SelfHosted Version: 1.119.2

I do have a workflow that gets triggered every minute and being connected to my Outlook account will pull all the unread mail.

I did set a Loop over items node for which the batch size is, 1.

This way if I do receive multiple mails at once (let’s say 3).

the system reads the 3 emails BUT only process the first, leaving the data of the other two untouched. in this example just the first downlaod file is processed as well as the data inside the mail from which I do collect important information to structure a Google Sheets document.

So in short, if I do get 2 - 3 or 10 emails I need each email to be treated as separated and its attachments and data in the body need to be processed so to provide a single output. The system should cycle over all the unread email and provide the output as needed.

Any suggestions on how to get all the other mail’s content processed as well?

Thank you

Giuseppe

Try adding a Split Out node just before the loop. Set Fields To Split Out as $binary.

Ok I did find the problem. I did not create the workflow loop that goes back into the Loop node to gather the second, third and so on items. I have connected the last node of my workflow back to the input of the Loop Over to make this happend and it seems it is working now. Thank you @Mookie_Lian for ur kind support. Much appreciated !

1 Like