# SendGrid: Send a list in the email's body

**URL:** <https://forum.bubble.io/t/sendgrid-send-a-list-in-the-emails-body/333070>\
**Category:** Need help\
**Created:** [July 29, 2024, 9:35am UTC](https://forum.bubble.io/t/sendgrid-send-a-list-in-the-emails-body/333070 "2024-07-29T09:35:16Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomascope](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thomascope/32/191232_2.png) [@thomascope](https://forum.bubble.io/u/thomascope)\
**Post date:** [July 29, 2024, 9:35am UTC](https://forum.bubble.io/t/sendgrid-send-a-list-in-the-emails-body/333070/1 "2024-07-29T09:35:16Z")

</div>

Hello everyone,  
I tried to find how to integrate a list of things in the body’s email but because it is a little bit tricky, I can’t achieve the process. So I explain my issue.

I want to send email with SendGrid and I use a backend workflow to do it.

First for explaining my data, I have:

- An user that will receive the email. Data field : buddy. Data type : user
- Many users that would be the list of people inside the list. Data field: matchingBuddies - Data type : User’s list.

 ![Screenshot 2024-07-29 at 11.24.34](https://us1.discourse-cdn.com/bubble/original/3X/0/4/04dbe4be4dc49a2e7e0e7c66dbb97692714c66be.png)

In the backend workflow  
I created a workflow with the name newbuddytomatch in response type JSON

 ![Screenshot 2024-07-29 at 11.26.49](https://us1.discourse-cdn.com/bubble/original/3X/e/8/e841274c09e1ebdeaf0ac12045a757fbdee91e88.png)

Step 1: create the row with the right field data (buddy = current user)

 ![Screenshot 2024-07-29 at 11.27.43](https://us1.discourse-cdn.com/bubble/original/3X/e/a/ea8939aa3df96519e7dfe893ae0ba52feca166b5.png)

Step 2: The several users who match with the current users (same interests)

 ![Screenshot 2024-07-29 at 11.29.07](https://us1.discourse-cdn.com/bubble/original/3X/e/f/efbfaafea69d5cb9303ffda744bfc89388ba4ed1.png)

Step 6: the schedule API workflow who calls the API workflow for the right data.

 ![Screenshot 2024-07-29 at 11.29.40](https://us1.discourse-cdn.com/bubble/original/3X/e/b/ebed77ee4dda01d4258fe9c2a9692a9ca3406913.png)

The API worflow to send the email with SendGrid/

 ![Screenshot 2024-07-29 at 11.31.33](https://us1.discourse-cdn.com/bubble/original/3X/6/b/6bec96f6d018d2e4620c23c294dcfc3f74601e64.png)

Step 1: the email’s sending action. Trigger wokflow with : POST

 ![Screenshot 2024-07-29 at 11.32.18](https://us1.discourse-cdn.com/bubble/original/3X/5/b/5b68e3b8b7acd4bb0aac4c3c319fe579dbb94c60.png)

 ![Screenshot 2024-07-29 at 11.32.30](https://us1.discourse-cdn.com/bubble/original/3X/3/e/3e866a502aea841825d249a61128d93e5268e40a.png)

 ![Screenshot 2024-07-29 at 11.32.55](https://us1.discourse-cdn.com/bubble/original/3X/f/d/fd4ed574b0218dbe4a1b36cc2706f7ab7f61a41f.png)

I have basic template on SendGrid without HTML code.  
I read that I have to code some HTML. In that case, what is the code I have to write and how? (I am not a coder yet :frowning ☹ )

Thank you a lot

---

<div class="post-metadata">

**Author:** ![Zeroic](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/zeroic/32/246980_2.png) [@Zeroic](https://forum.bubble.io/u/Zeroic)\
**Post date:** [July 29, 2024, 12:17pm UTC](https://forum.bubble.io/t/sendgrid-send-a-list-in-the-emails-body/333070/2 "2024-07-29T12:17:14Z")

</div>

Hi! The set-up seems fine. Does the email get sent if you’re sending it to only one user?

---

<div class="post-metadata">

**Author:** ![thomascope](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thomascope/32/191232_2.png) [@thomascope](https://forum.bubble.io/u/thomascope)\
**Post date:** [July 29, 2024, 2:32pm UTC](https://forum.bubble.io/t/sendgrid-send-a-list-in-the-emails-body/333070/3 "2024-07-29T14:32:28Z")

</div>

Yes for the sending it is okay, I don’t have issue.

I would like to integrate a list inside the mail as a bullet point.  
I saw you have to code some JSON.  
Do you know how to integrate a list inside the body of a mail ?

Thank you

---

<div class="post-metadata">

**Author:** ![Zeroic](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/zeroic/32/246980_2.png) [@Zeroic](https://forum.bubble.io/u/Zeroic)\
**Post date:** [July 29, 2024, 3:03pm UTC](https://forum.bubble.io/t/sendgrid-send-a-list-in-the-emails-body/333070/4 "2024-07-29T15:03:50Z")

</div>

I don’t think you would need JSON for that. Ideally, you can just have a variable for the content in your SendGrid email template, and send that variable your list of texts, with the delimiter being a new line.

---

<div class="post-metadata">

**Author:** ![thomascope](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thomascope/32/191232_2.png) [@thomascope](https://forum.bubble.io/u/thomascope)\
**Post date:** [July 29, 2024, 3:42pm UTC](https://forum.bubble.io/t/sendgrid-send-a-list-in-the-emails-body/333070/5 "2024-07-29T15:42:35Z")

</div>

I did it but it seems it does not work ☹

In bubble:

 ![Screenshot 2024-07-29 at 17.41.44](https://us1.discourse-cdn.com/bubble/original/3X/3/a/3ae78715b9db0f90b348887feb334089c5624413.png)

In SendGrid:  
 ![Screenshot 2024-07-29 at 17.42.00](https://us1.discourse-cdn.com/bubble/original/3X/d/9/d954d6391f847123c51a99850543ae3a671c0651.png)

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Zeroic](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/zeroic/32/246980_2.png) [@Zeroic](https://forum.bubble.io/u/Zeroic)\
**Post date:** [July 29, 2024, 6:10pm UTC](https://forum.bubble.io/t/sendgrid-send-a-list-in-the-emails-body/333070/6 "2024-07-29T18:10:13Z")

</div>

So the email being sent is empty? Do you want to debug this on a quick call?

> [@I need help with Product matching algorithm](https://forum.bubble.io/t/i-need-help-with-product-matching-algorithm/331904/2):
>
> Hey! Let me know if you want to debug over a call since I can’t find much info here - feel free to [schedule a 15-minute consultation](https://cal.com/zeroic/15-min-connect-with-prashant)

---

<div class="post-metadata">

**Author:** ![johnny](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnny/32/203020_2.png) [@johnny](https://forum.bubble.io/u/johnny)\
**Post date:** [August 19, 2024, 6:02am UTC](https://forum.bubble.io/t/sendgrid-send-a-list-in-the-emails-body/333070/7 "2024-08-19T06:02:02Z")

</div>

Try three curly braces: `{{{` `}}}`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [October 7, 2024, 9:35am UTC](https://forum.bubble.io/t/sendgrid-send-a-list-in-the-emails-body/333070/8 "2024-10-07T09:35:39Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
