I need help with deleting a single record using script. We want employees to be able to delete a record in Airtable by selecting a checkbox in STACKER. Here’s the flow
- Employees selects checkbox in Stacker
- Airtable automation triggered based on checkbox deselection
- Script triggered to delete the specific row
Any help is appreciated, thanks!
The syntax for deleting a record is detailed here: Airtable Scripting. Since you know which record to delete you can leave out the
query variable and instead use the trigger record’s ID. Do this by adding it as an input config variable: when editing your
Run a script action in the Automation, left side of the screen.
Thanks so much @Kamille_Parks ! Forgive me, I am not familiar with scripting. This is on my list to learn. Is there another example script I can reference?
There are probably dozens of scripts out there that delete a record, but since there is only one function to delete (a singular) record they are all going to look effectively identical.
If there is something unclear about the example I can explain it, otherwise another example is just going to be the same thing with a different variable name.