Activity Forums Salesforce® Discussions What is the use of Junction Object in Salesforce?

  • Akash

    Member
    April 29, 2016 at 7:32 am

    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.

  • shalini

    Member
    April 29, 2016 at 7:33 am

    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.

  • Naman

    Member
    April 29, 2016 at 8:00 am

    If you require to implement many to many relationship in salesforce, you need to go with Junction object.

  • Parul

    Member
    September 18, 2018 at 7:24 am

    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

  • shariq

    Member
    September 21, 2018 at 12:36 am

    Hi,

    Main use of junction object is to create many to many relationship between two sobject.

    Hope this helps.

  • Aman

    Member
    September 29, 2018 at 7:20 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:02 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.

  • Pooja

    Member
    March 6, 2020 at 1:39 pm

    Junction objects are used for creating many-to-many relationships in Salesforce. Salesforce by default supports one-to-many relationships.

Log In to reply.

Popular Salesforce Blogs