Expand my Community achievements bar.

Latest Community Ideas Review is Out: Discover What’s New and What to Expect!
SOLVED

Attach Multiple Documents to an Email

Avatar

Level 10

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:

 

Screenshot 2024-10-23 at 9.49.15 AM.png

 

Aggregator result:

Screenshot 2024-10-23 at 9.51.06 AM.png

 

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

Screenshot 2024-10-23 at 10.00.09 AM.png

 

Email Attachment Setup:

Screenshot 2024-10-23 at 9.53.41 AM.png

1 Accepted Solution

Avatar

Correct answer by
Level 6

Hi @Kiersten_K 

 

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"

View solution in original post

2 Replies

Avatar

Correct answer by
Level 6

Hi @Kiersten_K 

 

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"

Avatar

Level 10

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!

 

Screenshot 2024-10-23 at 5.25.21 PM.png