Struggling sending one email to multiple emails addresses via Sendgrid

Hello!

I am having issues sending one email to multiple addresses using a Sendgrid module. I have checked videos and browsed the community in the hope to find the answer… but nope.

My scenario grabs a list of customers ids and their statement email addresses. I use a set variable to split the email addresses, I then use an iterator and aggregator - and finally use the array from the aggregator on the ‘Send To:’ - in the Sendgrid module.

All works… except it sends the email to just one address, the first one… instead of all.
Any help would be really appreciated, thanks!

Entire scenario

Webhook with payload

Set Variable: {{split(1.payload.statement_email_addresses; “;”)}}
Screenshot 2024-08-07 at 21.56.12

Iterator
Screenshot 2024-08-07 at 21.56.21

Aggregator

Sendgrid
Screenshot 2024-08-07 at 21.56.47

1 Like

Welcome to the Make community!

You probably aren’t mapping them correctly in the Sendgrid module.

To allow us to assist you with your scenario, please provide the following:

1. Relevant Screenshots

Please share screenshots of relevant module fields? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

Following these steps will allow others to assist you here. Thanks!

Hey @Desy

You must have mapped the name and email address individually in fields of SendGrid module. As it accepts an array of collection, you can toggle on the map button inside the module and map the array itself instead of its values.

This answer is based on general understanding of this kind of problems. If you do not see any option of mapping array. Please share the screenshot of your SendGrid module mappings for better assistance.

Regards,

Msquare Automation - Gold Partner of Make
@Msquare_Automation

Hi Sam! Thanks for getting back to me - let me know if these screenshots are sufficient; happy to add more:

Outbound bundle from the array aggregator:

Sendgrid set up

Outbound bundle from Sendgrid, you can see the email gets sent to just one email, not both

Thanks so much for looking into this! I actually tried to just select the array but I must select the email addresses too, or I get an error; see below

with this set up it sends to one email only


Screenshot 2024-08-08 at 12.32.09

with this sends to none and throws an error (which makes sense to me, since we are not grabbing the data)
Screenshot 2024-08-08 at 12.27.42
Screenshot 2024-08-08 at 12.28.28

1 Like

Hey @Desy

This is easy. You are all set up and did all steps right. Just need an adjustment at this step.

  1. cross :x: the item 1 from top right corner in this image,

Screenshot 2024-08-08 at 12.27.42

  1. Toggle on the “Map” button right beside to “Send to” in same image.
  2. Now you will see only one box field to map. Map the array there.

Regards,
Msquare Automation - Gold Partner of Make
@Msquare_Automation

3 Likes

thank you so much!!! It worked like a charm… now I have to change all of my email campaigns scenarios :joy:

Have a wonderful day!

2 Likes

@Desy Glad to see your happiness of getting it resolved. :smiley:

Regards,
Msquare Automation - Gold Partner of Make
@Msquare_Automation