Send multiple collections (an array of PDF images and pdf file ) as Gmail attachments

:bullseye: What is your goal?

Send an array of PDF images and a PDF file as attachments in the same Gmail.

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

I’m trying to send Gmail with array pdf images (generated using iLovePDF’s API to convert each image into PDF and then I aggregated into an array using array agregattor) along with an other pdf file. However, I don’t know How I can add the PDF File into the array. I have been trying to map each image at the attachment but when the gmail is building, I get errros because there are missing keys such as ‘filename’ and ‘data’.

:clipboard: Error messages or input/output bundles

Validation failed for 1 parameter(s).
Invalid collection in parameter ‘attachments’.

Origin
Make

:link: Create public scenario page

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

Hi @Sergio_Hidalgo,

Follow below steps to add images and pdf both to email.

  1. Set the target structure of first aggregator to Gmail module (similar to below image)

  1. Use this formula under Gmail Attachment field {{merge(25.array; 62.array)}}

Let me know how it goes or if you have any questions.