I am trying to send one email to multiple email addresses through one arry

:bullseye: What is your goal?

I want to make this gmail node work so that I am able to CC multiple people using the array that is pulling 2 emails

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

I have tried every which way of fx and nothing has worked for me yet. The one time I got the email to send it had no one CCd

:clipboard: Error messages or input/output bundles

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

Hey Brandon,

your map() function is wrong and has two arrays inside with some random .1 after them. Fix your function synthax.

Hey @Stoyan_Vatov , what should this look then?

Hover over map and it will tell you the hat the expected structure is.

I tried this and it still did not work. @Stoyan_Vatov

Cause you type in the variable you want to filter by, not map it.

Hi @Brandon_Green taking a stab from what you started with above, it could be something like this, but it depends on the output of your array - can you attach a screenshot? Then we can help map the correct formula.

Sarah

Hey @Sarah_D @Stoyan_Vatov

This is what I have on my end. Sorry I dont undertand what you mean @Stoyan_Vatov .

{{join(map(109.array[]; "BDR_Email"); ",")}}

Replace BDR_Email with whatever the actual name of the variable is. Could be 2 since there is a (B) after it. Hover over the variable to see its raw name.

I put this in and got this error @Stoyan_Vatov.

I

Again, don’t map the filter value, type it in manually. You need to type in the raw name of the variable, not map it.

I tried both of these. I was able to make it work with just typing array but it sent nothing in CC. Apologies, im still learning the platform @Stoyan_Vatov

Oh sorry, gmail expects an array of emails in the CC field, not a comma separated list. So you dont need the join() function. Just map() should be enough.

@Brandon_Green in case you need to know for future, you can find the raw name of the variable like this - hover over the array and see what it says by “Raw” - here mine was ‘response’ so adding that means that I output a list of the responses, separated by commas here. This is the same structure as yours, my ‘response’ is the raw equivalent to your ‘email’ array.

1 Like

Gotcha, I tried this @Stoyan_Vatov and it only sent to the primary email

Also just tried this and it came back empty