When using the Gmail send feature, how do I reference a property from a node multiple steps back?
In this workflow, I’m receiving an email with an attachment, and then resending it later.
It works if I have the send immediately after the trigger, but that doesn’t let me get further info. Do I need to do a set style node to create that field/property right before the send node?
The normal approach would be to use a merge node to bring the bring the binary data forwards so it would be something like a merge after the If node that joins the Gmail Trigger data to it.
You can also use a code node just before it and do something like…
for (const [index, item] of $input.all().entries()) {
item.binary = $('Gmail Trigger').itemMatching(index).binary;
}
return $input.all();