Activity Forums Salesforce® Discussions What happens to detail record when master record is deleted in Salesforce?

  • shariq

    Member
    September 24, 2018 at 4:27 am

    When master Record is deleted, it’s detail records are also deleted.

  • Aman

    Member
    September 29, 2018 at 6:49 pm

    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

  • Avnish Yadav

    Member
    September 29, 2018 at 9:34 pm

    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.

Popular Salesforce Blogs

Popular Salesforce Videos