Activity Forums Salesforce® Discussions Is it possible to delete Junction Object in Salesforce Master-Detail Relationship?

  • Anurag

    Member
    August 3, 2018 at 1:56 pm

    Hi Chanchal,

    If the parent objects don’t have Roll up Summary fields for the child object then we can delete.To delete a child object it should not be referred to Apex Classes and Apex Triggers.Later if we undelete the object, Master-detail fields on the junction objects will be converted to look up Fields.

  • Aman

    Member
    September 29, 2018 at 7:21 pm

    Hi,

    If the parent objects don’t have Roll up Summary fields for the child object then we can delete.
    To delete a child object it should not be referred in Apex Classes and Apex Triggers.
    Later if we undelete the object, Master detail fields on the junction objects will be converted to look up Fields.
    Note:
    If we delete only Master – Detail Relationship field from the child object and undelete it from the Recycle Bin then it will be converted to look up relationship.
    Parent Object we cannot delete because it will be referred in the child object.

    Thanks.

  • Avnish Yadav

    Member
    September 29, 2018 at 8:05 pm

    Hello,

    Yes, it is possible only, there is no Roll-up summary.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos