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
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
Error messages or input/output bundles
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.
Gotcha, I tried this @Stoyan_Vatov and it only sent to the primary email
Also just tried this and it came back empty
I dont know how to explain this any other way. You can find the official Make course on using the map() function here.
Your CC field needs plain text, not the raw array.
Right now, Make is probably sending the whole array object, so Gmail does not read it as real email addresses.
Simple fix:
-
Take the 2 emails from the array
-
Join them into one text line
-
Separate them with a comma
-
Put that result into CC
Example:
email1@gmail.com,email2@gmail.com
So the idea is:
Array → join emails into one line → map that line into CC
If it sent once but no one was CC’d, that usually means the value was not in the format Gmail expects.
Gmail wants a normal text list of emails, not the array itself.
The CC field specifically requires an array of emails mate, not raw text. Furthermore, if you read the conversation OP already tried with raw text and it failed.
I think if you showed how this looks it would be very helpful
Several posts up I gave you formula for the join function, just remove the join so its only map() and replace the name of the variable with whatever the raw name of yours was. I think it was 1?
So {{map(109.array[]; "1")}} should give you a primitive array of emails that you can put in the CC field.