Feb 16, 2018 09:14 AM
Is there a way such that when we delete a record in one table, for example, a product, where it would delete the same record linked in other tables
Feb 17, 2018 02:35 AM
What do you mean with this? If you delete a Record, and it is linked in other tables Linked Record fields, it will disappear too (because it no longer exists). If you are talking about those Linked Records that are linked to the product (Customer for example), you could do something with Zapier: https://support.airtable.com/hc/en-us/articles/206785897-Using-Zapier-to-integrate-Airtable-with-oth...
Feb 17, 2018 02:51 AM
I agree with Elias…
In case you are feeling a bit geeky check out the API…it can also help you out.
Feb 17, 2018 05:57 AM
Unfortunately, Zapier cannot delete Airtable records (and there isn’t a trigger on deletion of a record either).
However, it can be done with Integromat (more powerful tool like Zapier) - albeit not as the parent record is deleted. You can run an Integromat “Scenario” as often as once a minute so there’s not much delay.
Here are the two steps in the Scenario:
1. Find Records with Blank Link Fields:
2. Delete the records found:
The great thing here is that it will process multiple records at one (you can specify how many) - the single find step may find 50 orphaned records and these would all be deleted.
The only issue is that designing Integromat Scenarios with Airtable is a little bug ridden at the moment (once they are designed it all works though). Airtable and Integromat need to put their heads together and sort this out.
Oct 10, 2018 11:44 PM
I have a "Customer/Invoice /Product Line/Products database.
When I deleted the Invoice, the associated Line Items were not deleted.
So I tried your suggestion, and it worked like a charm!
Thanks man, I really appreciate your sharing of your knowledge.
Cheers.
Oct 11, 2018 02:12 AM
You’re welcome@RocketMan!