Activity Forums Salesforce® Discussions What are Junction Objects in Salesforce?

  • Suraj

    Member
    March 14, 2017 at 9:41 am

    Hi Rahul,

    Salesforce Junction Objects are custom objects used to create many to many relationship between any two objects. A many to many relationship allow each record of one object to link with each record of another object and vice versa.For example,you may have 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.

    A Junction object is a custom object with 2 master detail relationships.

    Creating Many to Many relationship consists of :

    Creating the Junction Object
    Creating the two master detail relationship

    Thanks,

    Suraj Bisht

  • Radhakrishna

    Member
    March 21, 2017 at 5:41 am

    Salesforce Junction Object is 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.

    Fore more information, read this article http://wiki.developerforce.com/page/A_Deeper_look_at_SOQL_and_Relationship_Queries_on_Force.com

  • shariq

    Member
    July 13, 2017 at 2:11 pm

    Hi Rahul,

    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.
    For more information Click here

  • saloni gupta

    Member
    July 21, 2017 at 1:47 pm

    Junction Object in Salesforce is an Object it helps to maintain many-to-many relationship between two objects.

  • Aman

    Member
    September 29, 2018 at 7:22 pm

    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.

  • Avnish Yadav

    Member
    September 29, 2018 at 8:06 pm

    Hello,

    junction object is a custom object with two master-detail relationships and is the key to making a many-to-many relationship.

    Thanks.

Log In to reply.

Popular Salesforce Blogs