Activity › Forums › Salesforce® Discussions › What happens to detail record when master record is deleted in Salesforce?
Tagged: Lookup Relationship, Master Detail Record, Master Record, Salesforce Triggers, Update Child Records
-
What happens to detail record when master record is deleted in Salesforce?
Posted by Parv Shekhar Singh on September 24, 2018 at 4:27 AMWhat happens to detail record when master record is deleted?
Avnish Yadav replied 7 years, 7 months ago 4 Members · 3 Replies -
3 Replies
-
When master Record is deleted, it’s detail records are also deleted.
- [adinserter block='9']
-
Hi,
A master-detail relationship is a stricter relationship, where the children (detail records) are tied to the parent (master). They can’t be moved to another master (yet – this is coming soon) and deleting the master will delete all of it’s children.
Thanks
-
Hello,
1) In case of Master-Detail Relationship, if you delete Master Record, all corresponding Child Records get deleted.
2) In case of Lookup Relationship, if you delete Master Record, all corresponding Child Records will not be deleted. But if you want to delete child records in this case, you can create a trigger through which on master record deletion the child records will get deleted. It will behave like a master detail relationship.Thanks,
Log In to reply.