Help

Zapier Emails: Create a Table From Linked Records

Topic Labels: Integrations
3617 4
cancel
Showing results for 
Search instead for 
Did you mean: 
AlliAlosa
10 - Mercury
10 - Mercury

Hi there!

I am trying to devise a way to send an email with a recap of our sold inventory from the past week using Zapier. The Zap will be triggered upon a new record in a view. (Our sales manager will Audit the list from the past week, then use a checkbox to say it’s ready to go).

Obviously, the number of units sold will change week to week, so I can’t use a static HTML table in my email.

Ultimately, I’d love to end up with the same design I have in Page Designer - see below screenshot. (side note: I will be ecstatic on the day that Page Designer/other blocks integrate with Zapier - it would solve SO MANY of my problems if I could attach a page from Page Designer as a PDF to an email or to a record).

EXAMPLE_EMAIL.jpg

Any ideas as to what sort of action steps I need to use before I build my email template?

Thanks so much!

4 Replies 4
Mac
8 - Airtable Astronomer
8 - Airtable Astronomer

Not quite the same but, I use a roll-up on my “project” table to pull in all the completed tasks and incomplete tasks into a weekly report email.

Then I use Zapier and their formatting zap to clean up the information and Mailjet to distribute that email as well as create a record in AT for that weekly report.

Screenshot_20190127-065931_Chrome~2.jpg

If you figure out how to send an email with a table, let us know! That would be great for my weekly updates as well!

AlliAlosa
10 - Mercury
10 - Mercury

Thanks Mack! I think I have figured this out after much trial and error - and it’s actually somewhat simple!

I’ve set up a table called [Weekly Emails]. Each record represents one week of units sold and is linked to those units on the table [Sale Details].

On [Sale Details], I added a field called {Table Row} with the following formula (obviously you’d change out your fields to whatever you want to appear in each row).

"<td>" & DATETIME_FORMAT({Date Sold},'M/D/YYYY') & "</td><td>" & Stock & "</td><td>" & Description & "</td><td>" & {Customer Sold To} & "</td><td>" & {Sold By} & "</td>"

Then, on the [Weekly Emails] table (screenshot below), I set up a rollup field called {Table} which looks at {Table Row} and creates an array, separated by table row tags with this formula:

"<tr>" & ARRAYJOIN(values, "</tr><tr>") & "</tr>"

TABLE_SETUP.jpg

Next, I set up the email template in Zapier:

ZAP_SET_UP.jpg

End result in an email:

EMAIL_EXAMPLE.jpg

It’s not super pretty yet but the table is there! And it will adjust automatically depending on how many units were sold. Pretty excited about this one! Happy to help further if you want.

Mac
8 - Airtable Astronomer
8 - Airtable Astronomer

Nicely done and in two steps on Zapier!

I’ll have to carve out some time for this, thanks for the screen grabs and I’ll let you know if I get stuck!

I tried to replicate this in Airtable automations’ “Gmail: Send Email”-action. Though the HTML output draws the table correctly when copied in a html viewer, the email won’t display the table correctly.

I wondered whether you might have tested this and be aware what could be the issue?

Thanks,
Ricardo