Delete Connected Child Records Along with the Parent Record
This is how you can set up a Pipe using the Tadabase REST API and an Action Link to delete connected Child records and the Parent record.
Step 1
Download the Tadabase Rest API and plug in your API keys from your app settings. Add the following locations listed below to your pipe calls.
Pipe Settings
Overview
- DELETE
https://api.tadabase.io/api/v1/data-tables/{tableId}/records/{recordId}
Parameters (Name / Slug)
- Table ID / tableId
- Record ID / recordId
Headers (Key / Value)
- X-Tadabase-App-id / {appId}
- X-Tadabase-App-Key / {appKey}
- X-Tadabase-App-Secret / {appSecret}
Response
- 200 / JSON / type / Response Type
Step 2
Add an action link to your parent table with the following Action Rule.
Step 3
Navigate to Table Rules of your child data tale and set the following rule.
Step 4
Now that your table rule is set. Go back to the action rule in the Parent's table of your page and put a second action rule to "update this record" with the following settings.
Original Community Post:
https://community.tadabase.io/t/delete-connected-child-records-along-with-the-parent-record/1849
We'd love to hear your feedback.