I would like to build an automation script that deletes the record after 14 days of being done.
Status = done
Table Name = Onboarding Status

I would like to build an automation script that deletes the record after 14 days of being done.
Status = done
Table Name = Onboarding Status

Best answer by Alessio_Monino
hi @Jesus_Yanes,
just building up on @kuovonne’s contribution, after you have created the formula field, you can use it to build the following automation with a script. I am attaching screenshots of the automation below:


Script:
let table = base.getTable("Onboarding Status")
await table.deleteRecordAsync(input.config()['target_record_id']);
Hope this helps!
Website: alessiomonino.com
Calendly: Calendly - Alessio Monino
Email: alessio.monino@gmail.com
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.