Activity › Forums › Salesforce® Discussions › What is the use of Junction Object in Salesforce?
Tagged: Custom Report, Data Model, Junction Object, Many To Many Relationships, Master Detail Relationship, Salesforce Custom Object
-
What is the use of Junction Object in Salesforce?
Posted by Satyakam on April 29, 2016 at 7:30 AMWhat is the use of Junction Object in Salesforce?
Pooja replied 6 years, 2 months ago 9 Members · 8 Replies -
8 Replies
-
Junction objects are used to create many to many relationships between objects. If you take the Recruiting application example, you can see that a Position can be linked to many Candidates, and a Candidate can apply for different Positions. To create this data model you need a third object “Job Application” that links the 2.
So you’d create a lookup field for both Position and Candidate object on the “Job Application” object. This will establish many to many relationship between Position and Candidate via the “Job Application” object known as the junction object.
- [adinserter block='9']
-
In Salesforce, a Junction Object is a custom object with two master-detail relationships to two different record types. It is used to represent a many-to-many relationship in which several junction objects can link one instance of a record to many children, and each child can equally be linked to many parents.
-
If you require to implement many to many relationship in salesforce, you need to go with Junction object.
-
Hi satyakam,
Instead of creating a relationship field on the Position object that directly links to the Employment Website object, we can link them using a junction object . A junction object is a custom object with two master-detail relationships, and is the key to making a many-to-many relationship.
Thanks
-
Hi,
Main use of junction object is to create many to many relationship between two sobject.
Hope this helps.
-
Hi,
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.
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.
-
Hello,
junction object is a custom object with two master-detail relationships and is the key to making a many-to-many relationship.
Thanks.
-
Junction objects are used for creating many-to-many relationships in Salesforce. Salesforce by default supports one-to-many relationships.
Log In to reply.