In this guide, we'll show you how to set up daily email reminders for a Coda table based on data in your table. In this example, you'll be sending reminders when tasks in your table are either overdue or due today. Note, this is an example using the API - you can also use our automations feature to accomplish this same task.
You can use this approach for both formulaic and non-formulaic columns. You can also extend this example to look at column values periodically and take other types of actions like sending slack messages or text messages.
What you'll learn
How to read from a Coda doc and compare against values in Google App Script
How to send an email using Google Apps Script
Instructions
1. Setup
For this example, we'll have a tasks table with a Status column. The idea is to send out an email each morning with overdue tasks and tasks due today.
Here's a button to configure some example due dates:
With the script set up, run (▶) your sendReminders() function. You (and whoever else you have set up in EMAIL_RECIPIENTS) should get an email shortly that looks like this:
You can now set up a trigger (
) to run sendReminders() every morning at the time of your choosing (see