Photo by Limor Zellermayer on Unsplash

A Time Based Automation

to delete checked rows older than 30 days

Evaluate all rows

Automations run over every row of the defined table(s), but do not run their instructions (like deletete thisRow) on every row. In order to understand where to execute the instruction, the automation simple checks everything before running.

When does an automation run?

An automation runs when you tell it to run. It runs when the doc is closed and when you are not behind your computer, when you machine felt asleep and is getting cold. It works independently from you and it does the job for you. The maker instructs, the automation executes.

KISS

In my community response I focused on simplicity. You need a rule that tells when a row is ready to be deleted. The rules I created are — once you seen them — simple: the checkbox should be checked and the modification moment should be 30 days or longer ago.

Delete this row — condition

To keep it simple I added a checkbox in the table, although I could have written a more complex function to avoid this support column. Better clear than clever in my perspective. In our example the checkbox had to be checked and the check should at least be 30 days ago. Two conditions and one action.

base logic put in place

The automation

Every automation has at least two parts. First we define when an automation should run, second we tell what to do. In the community I presented a time based solution since this is the only one that can workin this context. A change of a column only works when you manually can edit the value. This type of automation does not work with a function behind it.

two steps
Christiaan — Coda Expert — on: “A Time Based Automation”

--

--

I use Coda mainly for (HR) planning & (budget) calculations. Follow me to learn how to Coda with numbers. I blog at least once per week.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Christiaan Huizer

I use Coda mainly for (HR) planning & (budget) calculations. Follow me to learn how to Coda with numbers. I blog at least once per week.