I am trying to create a node where I can send attachments via email. I have 2 attachments in one system (Ninox). However 2 emails are generated in Outlook. I would like to have one email with both attachments and not 2 emails with one attachment each.
Hi @Robert and welcome to the community. Your workflow is sending two mails because all nodes run once for each item by default. If you want to send only one email with both attachments you can concatenate your items using the Item Lists node, like in my example below:
Sadly does the Item Lists not currently not operate with binary data. For that reason is the solution actually a little bit more complicated right now and requires the Code-Node and an Expression on the GMail-Node. Hope we are able to add support for binary data to the Item Lists node soon.
Ah sorry, did not see that you were using Outlook as the other example workflow used Gmail.
The problem there is that the Outlook node did not get updated yet and it currently does not support sending multiple attachments by comma separating them. It expects each of them in a separate field. For that reason, does it instead of looking for the binary properties data0 and data1 look for one that is called data0,data1 which does obviously not exist.
Can you also use Gmail or the Send Email node and configure it to connect to your Outlook account?
Hi @micha1, you probably want to use an expression like {{ Object.keys($binary).join(",") }} as the Send Email node is expecting a comma separated list of binary properties, not the full binary data: