Jul 06, 2021 06:32 PM
Hey everyone,
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
Any help is appreciated, thanks!
Jake
Jul 06, 2021 07:38 PM
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.
Jul 08, 2021 09:44 AM
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?
THANK YOU
J
Jul 08, 2021 09:57 AM
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.