Activity › Forums › Salesforce® Discussions › How to create Many-to-Many Relationship in Salesforce?
Tagged: Custom Object, Junction Object, Many To Many Relationships, Master Detail Relationship, Master Object
-
How to create Many-to-Many Relationship in Salesforce?
Posted by Parv Shekhar Singh on September 24, 2018 at 4:24 AMHow to create Many-to-Many Relationship in Salesforce?
Avnish Yadav replied 7 years, 8 months ago 4 Members · 3 Replies -
3 Replies
-
In salesforce, Junction Object are the part of the objects which joins one object to another. These are specially used to join many objects in Many to Many relationships.
- [adinserter block='9']
-
Junction Object is a custom object with two master-detail relationships. Using a custom junction object, you can model a “many-to-many” relationship between two objects. For example, you create a custom object called “Bug” that relates to the standard case object such that a bug could be related to multiple cases and a case could also be related to multiple bugs.
By using Junction Object we can achieve this relationship, here junction object is having Master- Detail Relationship with different objects (Ex.Students & Courses). Using this Master to Detail Relationship, we can create the Many-to-Many Relationship in between the objects. -
Hi,
Creating the many-to-many relationship consists of:
Creating the junction object.
Creating the two master-detail relationships.
Customizing the related lists on the page layouts of the two master objects.
Customizing reports to maximize the effectiveness of the many-to-many relationship.Thanks.
Log In to reply.