Attach Multiple Documents to an Email | Community
Skip to main content
KierstenKollins
Community Advisor
Community Advisor
October 23, 2024
Solved

Attach Multiple Documents to an Email

  • October 23, 2024
  • 1 reply
  • 1190 views

Has anyone successfully created a scenario that attaches multiple docs to one email? 

 

I have been working on a scenario to be able to attach multiple files from one folder to an email but am running into a roadblock.

 

I have been experimenting with the iterator, aggregator and variable modules. When I test, the email will only attach one document but I can see in the aggregator that it did create 1 bundle with all files found in the folder. I am not sure if I am missing something in my setup with the email attachment setup. Also, I am new to using the iterator, aggregator and variables so maybe I am not setting up something correctly.

 

For context, I need to be able to attach docs to the email as we have users on our email distro that are not in Workfront and we do not need them to be.

 

Thank you for any help in advance.

 

 

Current scenario set up:

 

 

Aggregator result:

 

Email Result: only will bring in 1 file as an input instead of multiple files

 

Email Attachment Setup:

Best answer by Sven-iX

Hi @kierstenkollins 

 

you're close. 

 

But first, note in your last screenshot: You're literally setting ONE attachment. And you're referencing the first in the array from the aggregator (note the [1])

 

Instead, you like need to 

  • change the setVariables so they match the expected Attachments attributes
  • toggle the map switch
  • pass in the array from the aggregator

 

When you toggle that switch, you're telling the module "I'm passing you an array that has a list of objects with the attributes File Name and Data"

1 reply

Sven-iX
Community Advisor
Sven-iXCommunity AdvisorAccepted solution
Community Advisor
October 23, 2024

Hi @kierstenkollins 

 

you're close. 

 

But first, note in your last screenshot: You're literally setting ONE attachment. And you're referencing the first in the array from the aggregator (note the [1])

 

Instead, you like need to 

  • change the setVariables so they match the expected Attachments attributes
  • toggle the map switch
  • pass in the array from the aggregator

 

When you toggle that switch, you're telling the module "I'm passing you an array that has a list of objects with the attributes File Name and Data"

KierstenKollins
Community Advisor
Community Advisor
October 23, 2024

Thank you! I just figured that out that I could put the array in there all together using the map button.

 

I took out the variables to make it more simplified and ended with this and it worked perfectly!

 

 

 

Level 3
June 26, 2025

when I use the same, I am getting file name missing error.