Merge multiple binaries from 4 items into 1 to send an email

Describe the issue/error/question

I have a javascript node that returns an array of links like this:
[“”, “”, “”, “”]


The “Code” node returns four items, one per each item in the array.

Because of the four items returned in the code node, the HTTP node runs four times too. So now, I have four binaries in the HTTP node, and I’m trying to send them with the Gmail node, but I want to send one email with the four binaries

But the way it is, it runs the “gmail node” four times and sends the binaries individually.

How can I “merge” all the binaries into the gmail node?

How can I send all the binaries together in the same email?

Information on your n8n setup

  • n8n version: 0.209.4
  • Database you’re using (default: SQLite): SQLite
  • Running n8n with the execution process [own(default), main]: own
  • Running n8n via [Docker, npm,, desktop app]: docker

Hey @yukyo,

Check out the workflow example here: Downloading and Archiving Many Files Into A Single Archive - #2 by MutedJam this will take multiple binary items and make them available in the same item so you can use them.


Hi @Jon, that’s exactly what I was looking for; very helpful.

I’ll save that code from merging binaries; it benefits many use cases.


1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.