Activity Forums Salesforce® Discussions What purpose does Junction objects serve in salesforce?

  • Avnish Yadav

    Member
    June 26, 2018 at 12:17 pm

    For creating Many-to-Many relationship, we need Junction object. It is a custom object which can link one instance of a record to many children, and each child can equally be linked too. Junction Object have two master-detail relationships to two different record types

  • Parul

    Member
    September 15, 2018 at 5:36 am

    Junction objects are used to create many to many relationships between objects. It is a custom object which can link one instance of a record to many children, and each child can equally be linked too. Junction Object have two master-detail relationships to two different record types.

    Example: 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

  • shariq

    Member
    September 15, 2018 at 9:07 pm

    Hi,

    Reason :-

    You can't create many to many relationship in salesforce with two sobjects, you have to take a third sobject as junction between the first two.

    Hope this helps.

  • Aman

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

  • Prachi

    Member
    October 15, 2018 at 1:01 pm

    hi,

    Junction objects are used to create many to many relationships between objects. It is a custom object which can link one instance of a record to many children, and each child can equally be linked too. Junction Object have two master-detail relationships to two different record types.

Log In to reply.

Popular Salesforce Blogs