Activity › Forums › Salesforce® Discussions › What is the junction object and what is the use in Salesforce?
Tagged: Junction Object, Master Detail Relationship, Object, Record Type, Salesforce Lookup, Salesforce Support Process
-
What is the junction object and what is the use in Salesforce?
Posted by Piyush on August 22, 2019 at 3:56 AMWhat is the junction object and what is the use in Salesforce?
Prachi replied 6 years, 8 months ago 3 Members · 2 Replies -
2 Replies
-
Junction Object: In Salesforce, a Junction Object is a custom object with two masters-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.
- [adinserter block='9']
-
Hi,
Salesforce supports 2 kinds of relationships like Master Detail and Lookup. They are both one-to-many relationship, and they are both defined from the many-to-one side, that is from a child to a parent. They can be made one-to-one relationship by adding validation rules, or maybe triggers to enforce the one-to-one nature, i.e. only one child is allowed.
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.
Thanks.
Log In to reply.