SendGrid: Send a list in the email's body

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.

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

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

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

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

The API worflow to send the email with SendGrid/

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

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 :frowning: )

Thank you a lot

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

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

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.

I did it but it seems it does not work :frowning:

In bubble:

In SendGrid:
Screenshot 2024-07-29 at 17.42.00

Thanks :slight_smile:

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

Try three curly braces: {{{ }}}

1 Like

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