I’m trying to download all emails that comply with a specific search pattern, then forward them (by creating a new email) to another address.
I can get the Gmail node to read the emails, no problem.
After that one, I add another Gmail node to Send email, but I don’t find a way to add the attachments from the original email into the new one.
I can see the binaries, but can’t find an expression to add all of them to the new email.
There could be just one, or two, or three, I never know, but I need to forward all of them.
Hi @gabrielpc1190, the “Attachment Field Name” field would expect just the name of the binary property (or if there are multiple attachments, a comma separated list of these names).
$binary would, however, reference the entire dataset. So you probably want to use an expression like {{ Object.keys($binary).join(',') }} instead? The Object.keys method would read the names, .join(‘,’) would return these as a comma separated string.