# Passing an array into an email

**URL:** https://community.glideapps.com/t/passing-an-array-into-an-email/61327
**Category:** Ask for Help
**Created:** [May 4, 2023, 8:32am UTC](https://community.glideapps.com/t/passing-an-array-into-an-email/61327 "2023-05-04T08:32:37Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Bradley\_Gibson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bradley_gibson/32/58297_2.png) [@Bradley\_Gibson](https://community.glideapps.com/u/Bradley_Gibson)
#### Post date: [May 4, 2023, 8:32am UTC](https://community.glideapps.com/t/passing-an-array-into-an-email/61327/1 "2023-05-04T08:32:38Z")

</div>

Hi everyone

So I am working on a project where I have 2 different carts. One is for completed products and the other is for the building materials that is used to build these products.

 ![SCR-20230504-joel](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/8/c8af9f3dcfc17f4994a5213f0986f70fa6eac560.png)

At the top of those tables you can see a email button.

How would I go about getting these rows into an email that would be sent using the send email action.

Here is what my table looks like

 ![SCR-20230504-jnyo](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/7/270f6373552bb2b7438b52cbf963d6f76326c37e.png)

Is it even possible to and an array to an email? I am guessing I would have to use the template column to create the email around the array but I have no idea how to get the array into the template column

---

<div class="post-metadata">

### Author: ![Alaap\_Kanchwala](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/alaap_kanchwala/32/37980_2.png) [@Alaap\_Kanchwala](https://community.glideapps.com/u/Alaap_Kanchwala)
#### Post date: [May 4, 2023, 8:41am UTC](https://community.glideapps.com/t/passing-an-array-into-an-email/61327/2 "2023-05-04T08:41:47Z")

</div>

I do not think there is any quick or straightforward way to pass an array of data into the an email for the supplier. Your two best bets would be as such:

1. For each product in your table, create a template column or a ‘join’ column that allows each row in your table to produce this effect: Product name, color, quantity.

Once you do this for each product, go to the table where you have related the products in an array. Next to that relation column, create a join column that joins all the template columns by a " " (it can also be a line break (create by pressing enter)). What will happen is that your email body will (for 3 products), have 3 separate lines wherein each line will have the product name, color and quantity.

1. Use any integration like docautomater or pdf monkey to quickly generate a pdf retaining your company logo and table formatting. Once the pdf document is generated, you can then create an action to pass the PDF link into the email.

---

<div class="post-metadata">

### Author: ![Bradley\_Gibson](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/bradley_gibson/32/58297_2.png) [@Bradley\_Gibson](https://community.glideapps.com/u/Bradley_Gibson)
#### Post date: [May 4, 2023, 8:50am UTC](https://community.glideapps.com/t/passing-an-array-into-an-email/61327/3 "2023-05-04T08:50:57Z")

</div>

Perfect

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [May 5, 2023, 8:51am UTC](https://community.glideapps.com/t/passing-an-array-into-an-email/61327/4 "2023-05-05T08:51:06Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
