# Send array to Make

**URL:** <https://community.glideapps.com/t/send-array-to-make/51914>\
**Category:** Ask for Help\
**Created:** [October 17, 2022, 8:05am UTC](https://community.glideapps.com/t/send-array-to-make/51914 "2022-10-17T08:05:30Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![M.V\_Consulting\_SRL](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/m.v_consulting_srl/32/3613_2.png) [@M.V\_Consulting\_SRL](https://community.glideapps.com/u/M.V_Consulting_SRL)\
**Post date:** [October 17, 2022, 8:05am UTC](https://community.glideapps.com/t/send-array-to-make/51914/1 "2022-10-17T08:05:30Z")

</div>

Hi,  
I have a joined list with email addresses of several clients.  
My intention is to send this list to Make (Webhook), use an Iterator and send to each of the clients an email.  
Iterator need an array, and I don’t know how to solve this ☹

Thank you,  
M.V.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [October 18, 2022, 12:01am UTC](https://community.glideapps.com/t/send-array-to-make/51914/2 "2022-10-18T00:01:43Z")

</div>

You can send over a list of comma-delimited emails, and then use a split function to iterate and send the emails. Something like this.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/0/90b11811b55c5cf6abb7f94134fa9645f040cb29.png)

Then put the “value” in each iterator as the “receiver email” in the email module.

However, you can also consider this approach, which uses only 1 email module “run”, compared to X “runs” with X being the number of emails in your list.

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/5/5502fbac9776c8f124f8785b25071247d3db8328.png)

---

<div class="post-metadata">

**Author:** ![M.V\_Consulting\_SRL](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/m.v_consulting_srl/32/3613_2.png) [@M.V\_Consulting\_SRL](https://community.glideapps.com/u/M.V_Consulting_SRL)\
**Post date:** [October 18, 2022, 8:08am UTC](https://community.glideapps.com/t/send-array-to-make/51914/3 "2022-10-18T08:08:56Z")

</div>

Thank you 👌

---

<div class="post-metadata">

**Author:** ![Sumer\_Bhadra9](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sumer_bhadra9/32/36080_2.png) [@Sumer\_Bhadra9](https://community.glideapps.com/u/Sumer_Bhadra9)\
**Post date:** [October 22, 2022, 7:33am UTC](https://community.glideapps.com/t/send-array-to-make/51914/4 "2022-10-22T07:33:11Z")

</div>

I would recommend using a webhook inside the Google apps script, which includes a split function first and post-split the email being sent to the respective user. If you need help in making a webhook using an apps script, I can help you with that.

---

<div class="post-metadata">

**Author:** ![M.V\_Consulting\_SRL](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/m.v_consulting_srl/32/3613_2.png) [@M.V\_Consulting\_SRL](https://community.glideapps.com/u/M.V_Consulting_SRL)\
**Post date:** [October 24, 2022, 7:24am UTC](https://community.glideapps.com/t/send-array-to-make/51914/5 "2022-10-24T07:24:41Z")

</div>

Thank you 👍

---

<div class="post-metadata">

**Author:** ![Andres\_Borja\_42](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/andres_borja_42/32/54765_2.png) [@Andres\_Borja\_42](https://community.glideapps.com/u/Andres_Borja_42)\
**Post date:** [September 29, 2023, 4:41am UTC](https://community.glideapps.com/t/send-array-to-make/51914/6 "2023-09-29T04:41:52Z")

</div>

This is a great solution Thinh. I’m currently facing a similar issue, I wonder if you could help me:  
I need to do the same with two sets of comma-delimited values. They are a list of line items and a list of their corresponding quantities.  
How can I deal with them in Make if I’m trying to build an array that contains them both to send to a store, e.g., Shopify?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [September 30, 2023, 2:32am UTC](https://community.glideapps.com/t/send-array-to-make/51914/7 "2023-09-30T02:32:09Z")

</div>

Where did you get those two comma-delimited sets? I wonder if it’s from Glide, you can make it a JSON object instead to be able to have them in a better format when passed to Make.

---

<div class="post-metadata">

**Author:** ![Andres\_Borja\_42](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/andres_borja_42/32/54765_2.png) [@Andres\_Borja\_42](https://community.glideapps.com/u/Andres_Borja_42)\
**Post date:** [September 30, 2023, 2:51am UTC](https://community.glideapps.com/t/send-array-to-make/51914/8 "2023-09-30T02:51:07Z")

</div>

Correct, they’re coming from Glide. But you’re right, I should be passing them in a better format. This is what I came up with:  
 ![Screenshot 2023-09-29 at 21.45.42](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/7/1796a053ca3cc9ca32322ca436a5bbdfeace02c4.png)  
But I’m still wondering if this is the right way. Because I still can’t figure out how to get them parsed in Make. This is what I’ve got so far:

 ![Screenshot 2023-09-29 at 21.46.28](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/0/c0a31bdb6ea9c01d27858c73324cba1c53ddf059.png)  
But the error on the Parse JSON module says it’s not a valid JSON object. The thing is Glide does not let me send JSON objects in webhooks.  
If you have a suggestion I’d greatly appreciate it!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [September 30, 2023, 2:52am UTC](https://community.glideapps.com/t/send-array-to-make/51914/9 "2023-09-30T02:52:49Z")

</div>

It’s not a valid JSON object. It should contain square brackets at both ends. Please try adding them with a template column, pass that template column value to Make and see if it works.

---

<div class="post-metadata">

**Author:** ![Andres\_Borja\_42](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/andres_borja_42/32/54765_2.png) [@Andres\_Borja\_42](https://community.glideapps.com/u/Andres_Borja_42)\
**Post date:** [September 30, 2023, 10:20pm UTC](https://community.glideapps.com/t/send-array-to-make/51914/10 "2023-09-30T22:20:55Z")

</div>

You were right, just adding those square brackets solved everything. Thanks a lot, man!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [October 1, 2023, 12:28am UTC](https://community.glideapps.com/t/send-array-to-make/51914/11 "2023-10-01T00:28:17Z")

</div>

Great to hear! You can try [https://jsonlint.com/](https://jsonlint.com/) next time if Make tells you that your JSON is not valid.

---

<div class="post-metadata">

**Author:** ![Andres\_Borja\_42](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/andres_borja_42/32/54765_2.png) [@Andres\_Borja\_42](https://community.glideapps.com/u/Andres_Borja_42)\
**Post date:** [October 1, 2023, 1:17am UTC](https://community.glideapps.com/t/send-array-to-make/51914/12 "2023-10-01T01:17:27Z")

</div>

Awesome, will do. Thanks again!
