Hi,
I have a Gmail node which retrieves several mails. I have some other nodes and then a code node.
In this node, I want to get the current iteration of the Gmail node (if it’s the third mail, I want this mail infos).
In my code node, I have this:
const body = $('Gmail').all()[0].json.snippet;
But, that returns me the first mail of the list, not the current one… (and this is normal due to the [0]).
So my question is how to get the key of the actual mail in the loop ?
Here is a piece of my workflow for comprehension:
Thanks !