Send more than one attachments via email

I had a dropbox node that return 2 items, i need to send one email with the two items that returned,

  • i used the merge node and it’s not working
  • i used the aggregate node and it’s also not working for me

Can anyone help me with it.

Heya @Mohamed_Hayder - please share/show the error that’s being reported, also would help to have a copy of your canvas code also.

1 Like

that a test scenario, it works clearly with no error, just the email sent two emails one for each item and i need to send them by one email both

1 Like

Hi @Mohamed_Hayder Welcome!
Have you tried using a merge node after that DropBox node and before gmail node? with Mode combined by position? and then in your gmail you can attach those files by {{ Object.keys($binary).join(',') }} so this would attach all binaries at once.

1 Like

Hi @Mohamed_Hayder - go into node ‘send a message’ > Options > Attachments > and change field data to include the several files as strings seperated as commas > see reference to prior solution here - let us know how this goes for you and if any further assistance.

when i do that there is no output’s, and when enabling “include any inpaired items” stay 2 items output.

1 Like

the gmail node refuse it.

have a check for which attachment variables are available to call from on left pane - or please share the workflow code so I can replicate and perform correction.

1 Like

thats the data that return from previous node, and when delete the aggregate node still the same error

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

if you can open the dropbox on left pane to show the varibles available for the files

thank you I am checking on my side now few moments

@Mohamed_Hayder Understood try aggregate node for now that would surely work and set that to All item data with include binaries option enabled and then you can use this {{ Object.keys($binary).join(',') }} to attach files in your gmail.

3 Likes

THAT’S WORK, THANKS YOU SO MUCH, Appreciate you assistant.

nice work ansul :slight_smile:

1 Like

Thanks to you too, sorry if i waste you time.

2 Likes