I want basically the opposite of the Parental Deletion.
Normally, when you delete a parent record, the child record is deleted; but if you delete a child record, the parent remains.
What I want to happen is: when you delete the child record, the parent is deleted. If the parent is deleted, child should also be deleted.
Is this possible? And if so, is it possible without code?
*This post is locked for comments
I'm going to try the bulk delete - thanks!
You could try:
I'm not certain this would work; you may get a locking issue or a circular relationship error. If it doesn't work, you could write a simple custom workflow activity to delete the parent record (taking an input parameter to specify the record to delete), and call this from a workflow on the Delete of the child entity.
Another option could be to set a flag field on the parent record (again via a workflow on the Delete of the child entity) and have a bulk deletion job that deletes records with this flag set. This will only run periodically (e.g. every week), so there would be a delay in the deletion
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156