Post automated email - How to Update Date / Time of Record

Topic Labels: Automations Formulas Sync
207 2
Showing results for 
Search instead for 
Did you mean: 
4 - Data Explorer
4 - Data Explorer


I have managed to set up an email automation. But after the email is sent, I want to update the AirTable record with the date and time the email was sent. 

How do we do this? I did see Kuovonne do this with a custom script in another example. But not sure how to do this for us. 


Thank you. 

2 Replies 2
6 - Interface Innovator
6 - Interface Innovator


There is a way to do that without having to manage a script.

-1- Create a table with just 2 fields and 1 record:


Field date_id is an integer 

Field current_date is the formula NOW()

-2- Add a "Find records" action in your automation that you link to the table "date" with the condition date_id = 1:


-3- Add a last action in your automation to update the record that triggered the automation:


The value to pass to field "Mail sent" comes from the "Find records" action.

You could also create the formula field NOW() in the table you want to update, but it is not a good idea because this formula will slow down you database if called on too many lines. This is why I suggest to create a dedicated table with a single record.



I use a very simple automation script that outputs the current time. Then I use that output in an update records action. I include this script in my automation helpers, or if you do not have budget, you may be able to find a free version. 

I don't recommend using a formula field with NOW(), not even with a single record in a helper table. Even if there are few enough records to affect base speed, NOW() also is notoriously inaccurate. It can be off by anywhere from a few minutes to a few hours, depending on when the base and the table were last viewed/accessed.