Activity › Forums › Salesforce® Discussions › Is it possible to delete Junction Object in Salesforce Master-Detail Relationship?
Tagged: Apex Classes, Apex Triggers, Child Object, Junction Object, Lookup, Master Detail Relationship, Parent Object, Rollup Summary Field, Salesforce Relationships, Summary Fields, Undelete
-
Is it possible to delete Junction Object in Salesforce Master-Detail Relationship?
Posted by chanchal kumar on August 3, 2018 at 1:54 PMIs it possible to delete junction Object in case of Master-Detail Relationship?
Avnish Yadav replied 7 years, 8 months ago 4 Members · 3 Replies -
3 Replies
-
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.
- [adinserter block='9']
-
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.
-
Hello,
Yes, it is possible only, there is no Roll-up summary.
Thanks.
Log In to reply.