Exactly what I needed! I used single select "DELETE" as my trigger and it worked like a charm. Thanks Ben!
@BenGreenSystems2 жыл бұрын
Glad it helped! Woot woot!
@fjodorallgaier2 Жыл бұрын
great! thanks. For Multiple Records and taking the Airtable limitation into account of deleting maximum 50 records: let table = base.getTable("Table Name"); let inputConfig = input.config(); let recordIds = inputConfig['recordIds'].slice(0, 50); await table.deleteRecordsAsync(recordIds); just run it multiple times
@BenGreenSystems Жыл бұрын
This is incredible! Thank you so much
@ricardofahrig Жыл бұрын
Very helpful, thanks!
@polinanovikova250420 күн бұрын
Thank you Ben! It helps me a lot! Love your videos, they are beneficial 🙏
@bradlegassick93272 жыл бұрын
Ben yoy gotta get Nacho a bigger room! Thanks for all the awesome content. Keep it coming Cheers
@BenGreenSystems2 жыл бұрын
Working on it haha. Thanks for the support
@jeanninemcwhorter91910 ай бұрын
Hey Ben! After following your videos I automated with slack and now have bases from slack on my workspace that I need to delete, how do I delete them?
@GeographicusMaps-y3c Жыл бұрын
I set this up, and it works, but it only deletes 1 record, despite multiple records matching criteria - which is if a certain field is empty. Is there any way to make it delete all matching records.
@dmitriyprokhnevskiy14672 жыл бұрын
hmm, I'm curious how it would work if instead of a checkbox, you want to delete the records that have a certain dropdown status selected.
@bastienrch24512 жыл бұрын
Exactly the same question, I tried it like this but couldn't figure a way to do it
@BenGreenSystems Жыл бұрын
There is another script to delete all records in a view. I will have to do another video
@phillip6746 Жыл бұрын
@@BenGreenSystems I'm also interested in this video :)
@eliresnik35312 жыл бұрын
do you know if its possible to delete information in certain fields based on a check mark? Basically in Europe, we have a privacy clause where we cannot store people information when it is no longer necessary. I am trying to figure out a way, that when we check "Case has been resolved", the customers information/number/address is autodeleted. I would still like to keep the full record, just want to delete those certain fields based on a condition
@BenGreenSystems Жыл бұрын
Yes, you can do this with an update record automation. kzbin.info/www/bejne/nIvYl2Voor6VaKs
@noellep5447 Жыл бұрын
Do you have an updated version of this script? I am trying it and getting errors in Airtable with the syntax. Guessing there have been some changes made to the scripting since you published this but my coding skills are not good enough to know how to edit.
@hryhoriikrasko4114 Жыл бұрын
nope, worked for me today
@JeffHladek7 ай бұрын
This was so helpful!
@keithwhitson Жыл бұрын
Which tool do you use to record your videos?
@지혜-m6b2 жыл бұрын
hello, thank you for this video. I error has occured. can you help me? the error reason is below. what should i do? TypeError: Invalid arguments passed to table.deleteRecordAsync(recordOrRecordId): • recordOrRecordId → recordOrRecordId should be a Record, not undefined or recordOrRecordId should be a string, not undefined
@BenGreenSystems2 жыл бұрын
This seems to be a testing error - possibly your test record is null or undefined. Make sure your test is successful (green). If it is, then I would also consider what the record id string looks like that you are passing into the automation. Did you get it working?
@JorgeGonzalez-ds9ht2 жыл бұрын
Thank you for this video. It works perfectly however I tried to setup the automation using a trigger for example I want the records to be cleared all of them every 15 days or every month and i tried both but it didnt work. Do you have some insight on how the script may work with time automations?
@bladesNstuff2 жыл бұрын
I setup a view that only shows records that were created before two weeks ago. Then I set the automation to delete anything that is in that view. It’s nice became once you have a “delete view” any that gets filtered it to it gets deleted automatically. So you only need one delete automation per table.
@BenGreenSystems Жыл бұрын
What Lennon said should work. @Jorge Gonzalez did this work for you?
@davnunn12 жыл бұрын
Interesting, but I got an error in testing recordOrRecordId should be a string, not undefined
@BenGreenSystems Жыл бұрын
Your input needs to be filled in, not empty, not undefined. You may need to re-test your trigger.