How to send mail with files - from multiple array aggregators - in attachment

:bullseye: What is your goal?

To send one mail which does collect files from 2 different array aggregators.

:thinking: What is the problem & what have you tried?

I’ve tried to merge the output arrays of each array aggregator, and put the resulting array in the attachment field of the “Send an Email” module. This does not seem to work.

:clipboard: Error messages or input/output bundles

“Missing value of required parameter ‘fileName’”

:link: Create public scenario page

:camera_with_flash: Screenshots (scenario flow, module settings, errors)

Tried a variant of mapping the attachments to the files. However only 1 file (versus all files) of “30. Array” is added (versus all files).

Hey Dirk,

that’s cause you are mapping the first file of each array in the screenshot. Remove those and toggle the Map button next to Attachments, then map both arrays inside a merge() function.

Also your first aggregator has the wrong source module.

2 Likes

Hi Stoyan, Many thanks for your prompt and spot-on response! I’ve corrected the scenario as you proposed, and wow… it works now! You made my day. :sweat_smile:

1 Like