How to implement many to many relationship in Salesforce | Junction Object in Salesforce

Поділитися
Вставка
  • Опубліковано 27 лип 2024
  • In this video, Shrey has explained the following things :
    - Why there is a need to create many to many relationship in Salesforce?
    - What is junction object in Salesforce?
    - How junction object helps in creating a many to many relationship?
    - Points to consider while creating junction object.
    This is part 3 of the relationship videos, find the link to other parts below.
    Understanding Relationships in Salesforce (Basic) | How relationship works in Salesforce
    • Understanding Relation...
    What is Master Detail & Lookup relationship in Salesforce? | Different Types of Relationship Fields
    • What is Master Detail ...
    Grow your business with THE BEST SALESFORCE IMPLEMENTATION and CONSULTANCY SERVICES
    Reach us out here: cyntexa.com​​​​
    ------
    Get the BEST SALESFORCE COURSES & TRAINING here s2-labs.com/
    ------
    STALK ME ON:
    Instagram: / imshreyshar...​
    Facebook: / salesforcehu...​
    Twitter: / iamshreysharma​​​​
    LinkedIn: / imshreysh...​
    ------
    Shrey is a Chief Executive Officer at Cyntexa which is considered as one of the top Salesforce Consulting Partner in USA, UK, UAE, Australia, Singapore & India having a vibrant team of 100+ certified Salesforce experts which include developers, architects, consultants, administrators, and MVPs.
    Shrey took Cyntexa from 5 to 100+ people in less than 1.5 years while multiplying the revenues by 8 times. Shrey has been an entrepreneur since the age of 13 as he was buying and selling stuff and making money in the school itself. Shrey is the Youngest Salesforce MVP in the world who firmly believes in providing value to the people and building long term value-based relationships. His mission is to disrupt the way professional technical services are delivered by bringing back the empathy for the end-user rather than being operational and transactional.
    Shrey is popularly known as Salesforce Hulk in the Salesforce ecosystem as he was the first one to start creating videos on Salesforce on his UA-cam channel named as Salesforce Hulk and that too at the age of 19. Shrey is also the founder of S2 Labs which is a Salesforce Training Company, being the 1st one to start Salesforce training in Rajasthan, India, and currently selling his courses worldwide. Shrey is also a marvelous speaker who actively presents on topics that revolve around Salesforce and Entrepreneurship in various worldwide conferences. Shrey has also been a Judge in multiple technical and business hackathons organized by the Government of India like Smart India Hackathon.
    Shrey is a leader with out of the box thinking who emphasizes not only on hitting the sales targets but also on providing an amazing experience to the customers as well as employees. Shrey believes in building a team with strong values, ethics, and behavior which leads to the amazing culture at Cyntexa.
    -------
    #salesforce​​​​
    #learnsalesforce
    #salesforechulk

КОМЕНТАРІ • 125

  • @kumara5492
    @kumara5492 4 роки тому +44

    I am 41 yr from Dallas,Texas and love your explanation. I am from QA background but follow your videos a lot. I am bit slow in grasping the concepts. So, I watch each video 10 or 15 times ( sometimes even more ) just curious in seeking knowledge in Salesforce. And maybe next year I 'll be ready for some admin positions. Thank you for your service to Salesforce community.

    • @saikrishnaallampally3543
      @saikrishnaallampally3543 2 роки тому +1

      sir,for admin fresher ,what is starting salary in Dallas?

    • @barneycasting8331
      @barneycasting8331 2 роки тому +1

      $95 per hour, I have manipulated my resume and now consultancy guy is shadowing me.

    • @snehalthakkar136
      @snehalthakkar136 Місяць тому

      @@saikrishnaallampally3543 hello, i am preparing for Admin, and struggling to find my first project as a fresher. if u got your first project as a fresher could u please guide me how to get. Thank you

    • @saikrishnaallampally3543
      @saikrishnaallampally3543 Місяць тому

      Hi @@barneycasting8331 ,is there any changes to get onsite chances from india for salesforce developer now(2024)

    • @saikrishnaallampally3543
      @saikrishnaallampally3543 Місяць тому

      @@snehalthakkar136 I directly started my career as salesforce developer..

  • @reshmarays9273
    @reshmarays9273 5 років тому +26

    We can Crete total of 40 relationships on an object. Limit to create MD relation is 2 for a single object. If we create 2 MD then we can create 38 lookup or else 1 MD and 39 Lookup or 0 MD and 40 lookup relationships.

  • @mounireddy4106
    @mounireddy4106 2 роки тому +10

    Total of 40 relationship fields we can create per object. We can only create 2 M-D relationship fields per object, in that case 38 lookups can be created. If one M-D relationship field is created than 39 lookups can be created. If no master-detail relationship fields created we can create 40 lookups.

  • @jackgimbert6071
    @jackgimbert6071 3 роки тому +4

    Very helpful video, this is a topic I have struggled to grasp for a while, and you made it very clear. Keep up the great content Shrey!

  • @jazzaround
    @jazzaround 5 років тому +14

    Great session shrey.. It was really helpful for me as I was struggling to understand the concept of junction object. You explained it really well. Thanks and keep it up..😊

  • @trimurthynujella5287
    @trimurthynujella5287 4 роки тому +3

    Thanks for your valuable information about junction object with clarity

  • @johnbritolima
    @johnbritolima 5 років тому +2

    That was a very good explanation. Thank you very much.

  • @ExplorationsWithSK
    @ExplorationsWithSK 3 роки тому +1

    Explained very well ! Thank you !

  • @mike7243
    @mike7243 5 років тому

    Good Job Hulk. Explained very well - I got the point.

  • @nadegeelikya4262
    @nadegeelikya4262 3 роки тому

    Once again thank you so much for your support and help. You are amazing and funny

  • @chithraprakash8392
    @chithraprakash8392 5 років тому

    Thank you for writing it on the board. Can you also do the demo like you always do in your previous videos. It will be helpful

  • @darshanavarade1353
    @darshanavarade1353 4 роки тому

    Superb vdo. You explained it in easy way.. Thnks!!

  • @ankitkumar2011
    @ankitkumar2011 4 роки тому +4

    Great content to clear concepts! Thank you so much, Shrey Sir! One question though - you said, 'Look n Feel' is derived from Master object'. What can be understood as look and feel - page layout? :)

  • @JD-ye4cs
    @JD-ye4cs 5 років тому +3

    Awesome videos Mr. Hulk. I passed Admin 201 with zero experience and only because I watched ALL your videos in 10 days! Yayy. Thank you. I need to learn Service Cloud in detail. Will you be making any Service Cloud videos? Any advice how I can learn it in detail?

  • @NishantsinghKumar
    @NishantsinghKumar 3 роки тому

    thanks for the explanation

  • @shankarbanothu3392
    @shankarbanothu3392 4 роки тому

    I like the way of you teach to us 👤 thank you sooo much brother.....

  • @chithraprakash8392
    @chithraprakash8392 5 років тому

    Very good explanation.

  • @rizwanshaik5375
    @rizwanshaik5375 Рік тому +1

    Excellent💯 Explanation. Concept is clear!, Thank You.

  • @ankurkansal3511
    @ankurkansal3511 5 років тому +41

    We can create maximum of 40 relationships on objects .Maximum 2 master-detail and 38 Lookup or 0 Master 40 lookup or 1 master and 39 lookup but there cannot be more than 2 mater-detail on single object.

    • @SalesforceHulk
      @SalesforceHulk  5 років тому +7

      Hey Ankur
      You won the Junior Hulk Challenge.
      Please reach me out me on salesforcehulk@gmail.com to get your swag. :)

    • @chao.m
      @chao.m 3 роки тому +1

      Salesforce help text says the maximum is 25 relationships. Has the maximum been reduced from 40 to 25?

    • @ShahidulIslam-dd8he
      @ShahidulIslam-dd8he 3 роки тому

      @@chao.m I have the same question!

    • @ShahidulIslam-dd8he
      @ShahidulIslam-dd8he 3 роки тому

      @@SalesforceHulk Salesforce help text says the maximum is 25 relationships. Has the maximum been reduced from 40 to 25?

    • @shaf_5566
      @shaf_5566 3 роки тому +1

      @@SalesforceHulk can u explain why only 2 relationships can be made on master detail?

  • @JaimeBIDtravel
    @JaimeBIDtravel 3 роки тому

    Superb useful! I would kindly ask for an explanation about how to implement a junction object referencing two records of the same object (and having only one related list)

  • @methods5873
    @methods5873 5 років тому +2

    Please upload tutorials on lighting, it will be a great help for me.

  • @aliciamoore8028
    @aliciamoore8028 5 років тому

    thanks for sharing

  • @akshay4567
    @akshay4567 Рік тому +1

    Excellent is not the word👍👍👍👍

  • @benazeerinamdar6869
    @benazeerinamdar6869 5 років тому +3

    Please create a video on Apex , visual force, lightning coding etc .. Your videos are fab

  • @vishalmankar4969
    @vishalmankar4969 Рік тому +2

    thanks..

  • @EDHOKATIESEDDAM
    @EDHOKATIESEDDAM 5 років тому

    Soooper😍🤩

  • @rajwaghamode9896
    @rajwaghamode9896 2 роки тому

    very good Shrey make more video on different different concepts like this video thank you.......

  • @akulahemasanthoshi2182
    @akulahemasanthoshi2182 2 роки тому

    master detail relationship on object is maximum 2 and lookup relationship on object is maximum of 40
    your videos are awesome

  • @lazalazarevic6192
    @lazalazarevic6192 4 роки тому

    Does this work only for two tables/objects or it can be used for multiple objects?

  • @shamakhan6598
    @shamakhan6598 2 роки тому

    Ya , I am understand what you trying to say.☺️

  • @saurabhsood007
    @saurabhsood007 5 років тому +27

    total 40 relationship we can create it might be...
    1) 38 lookups and 2 masterdetail or
    2) 39 lookups and 1 master detail or
    3) 40 lookups or 0 masterdetail relationships

    • @SalesforceHulk
      @SalesforceHulk  5 років тому +1

      I think this is the second time when you missed the Junior Hulk challenge swag?

    • @saurabhsood007
      @saurabhsood007 5 років тому +1

      @@SalesforceHulk I try my best. I have hope one day I'll win swag t-shirt.. :)

    • @SalesforceHulk
      @SalesforceHulk  5 років тому +2

      Appreciate the spirit man!

    • @saurabhsood007
      @saurabhsood007 5 років тому +3

      @@SalesforceHulk I'm big fan of yours I think without I'm nothing .. appreciate u r hardworking for us ... 👏👏👏👍👍

    • @RelaxZone69
      @RelaxZone69 5 років тому

      what was wrong on your answer?

  • @SaddamHussain-bc9yh
    @SaddamHussain-bc9yh 5 років тому

    Can u upload video on trigger ?

  • @chao.m
    @chao.m 3 роки тому

    Given that a junction object can have at most two master-detail relationships and that a _junction_ must be between at least two objects, does it mean that if I need to establish many-many between three objects I must create three separate junction objects, one for each combination of two out of three m:m relationships?

  • @rahuljha3657
    @rahuljha3657 3 роки тому +3

    What an explanation that was!! 👍👍

  • @Coding_and_Gaming
    @Coding_and_Gaming 2 роки тому

    very good explanation thnx very much

  • @tusharchaudhari733
    @tusharchaudhari733 2 роки тому

    sir....... you are the best:)

  • @kalpakkarmore6555
    @kalpakkarmore6555 5 років тому

    If we have to create one to one relationship without triggers and workflow rule but with lookup relationship then how it is possible??

  • @victorcavalheiro6730
    @victorcavalheiro6730 4 роки тому

    Hey, why Salesforce allow to create two records with the same masters ID's? Aren't they composed primary key in the junction object?

  • @sreekumargopakumar10
    @sreekumargopakumar10 4 роки тому +1

    so great video again Shrey
    So when one of the objects is deleted what happens to the junction object.
    Again when both of the objects are deleted what happens to the junction object?
    Answer: 1st case - Junction object is deleted and moved to the recycle bin.
    2nd case Junction object is deleted permanently

  • @VenkataraoThatha
    @VenkataraoThatha 5 років тому +1

    Plz upload Triggers .... concept

  • @replyakhil
    @replyakhil 2 роки тому

    @salesforce hulk What is the best way to implement unique records in Junction object [e.g. S-1, G-1 combination should not be allowed to be repeated]?

  • @ManishKumar-rz9ub
    @ManishKumar-rz9ub Рік тому

    Great Explanation.

  • @nataraj009
    @nataraj009 5 років тому +1

    Total 40 relationships, So 38 look-up and 2 masterdetail,
    Not putting this answer for the sake of T shirt but for the simplified way of explaining this concept, this one is very confusing concept (may be for me) but you made me understand this very easily, Thank u very much

  • @rahuldev6206
    @rahuldev6206 Рік тому +1

    Best explanation forever

  • @babykumari2753
    @babykumari2753 3 роки тому

    Tell me student_ group (junction) me primary key kya hoga with q hoga

  • @ruchiagrawal3763
    @ruchiagrawal3763 4 роки тому

    Hi shrey ... recently I knew about your videos and subscribed your channel. Now I am watching and following your 2 or 3 videos everyday. In this video you have not shown how to create many to many relationships on lighting ... i mean on Saleforce app. Plz share the link if you already uploaded any video on this. If not then plz help me to understand how to create many to many relationship on two objects .
    Will wait for your response.
    Thanks 😊

  • @sahilm9598
    @sahilm9598 4 роки тому

    We can create only 2 master detail relationships and 25 lookup which can be extended to maximum 40.

  • @GaliMuchatlu
    @GaliMuchatlu 5 років тому

    Can anyone please explain why we can have a total of 40 relationships associating an object.

  • @njmusic813
    @njmusic813 4 роки тому

    Hi , Nicely explained. I do have a question though. I have successfully managed to implement a many to many relationship but can not add a roll up summary field on Student obj to see how many groups is he enrolled in. Can you please explain how might that be possible?

  • @tusharparmar7142
    @tusharparmar7142 2 роки тому

    Which object will hold reference to the junction primary key? In other words, How does one associate the relation from UI perspective? In other words, how will we implement on a UI?

  • @shahidafrid526
    @shahidafrid526 2 роки тому

    Please make a video on Salesforce maps

  • @vigneshperumal7272
    @vigneshperumal7272 5 років тому +1

    40 lookup relationship fields can be created using Lookup relation and 2 using Master Details relationship

  • @aswinbalaji1801
    @aswinbalaji1801 2 роки тому

    Bro what is look and filed

  • @bobmoalli5596
    @bobmoalli5596 4 роки тому

    I am struggling to understand if this operation requires using some of the Maximum 2 master-detail, can you provide some input on that?

    • @bobmoalli5596
      @bobmoalli5596 4 роки тому

      I have understood why JUNCTION OBJECT is needed, this video was quite helpful. Since I'm working with existing objects that are being connected what is the best way to seed current data into the JUNCTION OBJECT. I'm concluding I have to export from both Pkey objects merge and import as one?

  • @sushant5753
    @sushant5753 2 роки тому

    We can creare 40 lookup realtionship and 2 master deatil realtionship

  • @Kings238
    @Kings238 Рік тому

    supperb

  • @pantalaeswaravinash9544
    @pantalaeswaravinash9544 Рік тому

    in look up relation ship created by 40 relations and master detail realation ship only 2 realations can be possible

  • @ADITYA5777
    @ADITYA5777 5 років тому

    2 M-D and 25 Lookup

  • @fellinlove2651
    @fellinlove2651 5 років тому

    Total 40 relationship in one object,38 lookup and 2 master details

  • @vijayasaibalusu6845
    @vijayasaibalusu6845 4 роки тому

    2 master detail relationships and 38 look up relationships or
    1 master detail relationship and 39 look up relationships or
    0 master detail relationships and 40 look up relationships

  • @ivamandic5152
    @ivamandic5152 4 роки тому

    ILY

  • @HariBabu-si7gq
    @HariBabu-si7gq 3 роки тому

    Hello, please let me know Can we delete and and delete the Junction object?

    • @srinivasulu2013
      @srinivasulu2013 3 роки тому

      Junction object records are deleted when either associated master record is deleted and placed in the Recycle Bin. If both associated master records are deleted, the junction object record is deleted permanently and can't be restored.

  • @philnewman7613
    @philnewman7613 4 роки тому

    Can a junction object be used in a record field or only in a related list?

    • @sachinrnayak3420
      @sachinrnayak3420 3 роки тому

      When modeling a many-to-many relationship, you use a junction object to connect the two objects you want to relate to each other. A custom object with two master-detail relationships. Using a custom junction object, you can model a “many-to-many” relationship between two objects.

  • @PavaneswarSatyaMatlapudi
    @PavaneswarSatyaMatlapudi Рік тому +1

    On any Object we can have max of 2 Master - Detail Relationship and max of 40 Look-Up Relationship

  • @naveenreddy7152
    @naveenreddy7152 2 роки тому

    2 master detail relationships and 38 lookup relationship data types

  • @gopiindian6589
    @gopiindian6589 5 років тому

    25 lookup
    2 master detail

  • @utkarshnelwadkar9577
    @utkarshnelwadkar9577 3 роки тому

    for each custom object we can create upto 25 lookup relationship and upto 2 master-detail relationship we can create.

  • @monalichichghare3564
    @monalichichghare3564 2 роки тому

    2master detail and 38 lookup relationship

  • @zahidhashmi8081
    @zahidhashmi8081 5 років тому

    Total 40 relationship in which 2 M-D and 38 lookup relationship

  • @SaddamHussain-bc9yh
    @SaddamHussain-bc9yh 5 років тому +1

    👍

  • @sridivya8374
    @sridivya8374 3 роки тому

    We can create 2 master-detail relationships and
    50 look-up relationships on an object.
    Thank you 😊

  • @rushi5294
    @rushi5294 Рік тому

    What if we create many to many relationships with junction objects using lookup , what will be the Sharing and security scenario then?

    • @SalesforceHulk
      @SalesforceHulk  Рік тому +2

      The junction object will have its own security & sharing settings.

    • @rushi5294
      @rushi5294 Рік тому

      @@SalesforceHulk Thanks for your quick reply, could you please share your video or web article link that will put more light in this scenario ?

  • @ilagaba9058
    @ilagaba9058 4 роки тому

    40 Lookup relationships and 2 master details relationship

  • @kalpanawankhede2682
    @kalpanawankhede2682 2 роки тому

    We can Crete a total of 40 relationships on an object.
    MD relation is 2 for a single object.
    2 MD then we can create 38 lookups
    1 MD and 39 Lookups
    0 MD and 40 lookup relationships.

  • @manasakadaveru465
    @manasakadaveru465 5 років тому

    2 MD
    25 LU's...

  • @kanchaswapna1143
    @kanchaswapna1143 Рік тому

    2master detail and By defualt 40lookup relationship...

  • @rushalikawale8032
    @rushalikawale8032 3 роки тому

    What is lookup ?

    • @sachinrnayak3420
      @sachinrnayak3420 3 роки тому

      In Salesforce, lookup fields allow users to associate two records together in a relationship. For example, a user can associate a contact record to an account record using the Account Name lookup field. When users edit a lookup field, they need to find the right record to associate.

  • @harshpatle8546
    @harshpatle8546 5 місяців тому +1

    Lookup relationship
    For custom objects - 40
    For standard objects -25
    Masterdetail relationship
    2 for an object

  • @kalpanawankhede2682
    @kalpanawankhede2682 2 роки тому +1

    it's been increased to 40 now

  • @ankurkansal3511
    @ankurkansal3511 5 років тому +1

    I Guess I am the one who is the first to give correct answer..So where is the T-Shirt....:)

    • @SalesforceHulk
      @SalesforceHulk  5 років тому

      Reach us out on salesforcehulk@gmail.com

  • @latarishabh
    @latarishabh 4 роки тому +1

    If 2 master details then 38 look up
    If 1 master details then 39 look up
    If all 40 are look up then 0 master details

  • @kalpanawankhede2682
    @kalpanawankhede2682 2 роки тому

    25 is the limet.

  • @roopareddy3537
    @roopareddy3537 Рік тому

    Hlo tell slowly ND neatly

  • @hemanthkumarng8996
    @hemanthkumarng8996 Місяць тому

    40

  • @ashiqueraju1330
    @ashiqueraju1330 Рік тому

    25 relationship in a single object

  • @hariswaroop3780
    @hariswaroop3780 5 років тому

    40 lookups and 2 master details

  • @AMITKUMAR-rb6nr
    @AMITKUMAR-rb6nr 5 років тому

    Total relationship-27
    master relationship-2
    lookup relationship-25

  • @bijendarrawat5562
    @bijendarrawat5562 3 роки тому

    Kindly speak slowly......

  • @hemlatha898
    @hemlatha898 Рік тому +1

    👍