Activity Forums Salesforce® Discussions Is it possible to delete junction – Object in case of Mater – Detail Relationship in salesforce?

  • Is it possible to delete junction – Object in case of Mater – Detail Relationship in salesforce?

    Posted by Saurabh on April 5, 2017 at 4:16 pm

    Is it possible to delete junction – Object in case of Mater – Detail Relationship in salesforce?

    Manpreet replied 7 years ago 2 Members · 1 Reply
  • 1 Reply
  • Manpreet

    Member
    April 5, 2017 at 4:20 pm

    Hi Saurabh,

    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.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos