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

Поделиться
HTML-код
  • Опубликовано: 14 июн 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 RUclips 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

  • @reshmarays9273
    @reshmarays9273 5 лет назад +24

    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.

  • @kumara5492
    @kumara5492 4 года назад +42

    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 3 дня назад

      @@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 3 дня назад

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

    • @saikrishnaallampally3543
      @saikrishnaallampally3543 3 дня назад

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

  • @mounireddy4106
    @mounireddy4106 2 года назад +9

    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 года назад +3

    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 4 года назад +13

    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 года назад +2

    Thanks for your valuable information about junction object with clarity

  • @ExplorationsWithSK
    @ExplorationsWithSK 3 года назад

    Explained very well ! Thank you !

  • @johnbritolima
    @johnbritolima 4 года назад +1

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

  • @mike7243
    @mike7243 5 лет назад

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

  • @rizwanshaik5375
    @rizwanshaik5375 Год назад +1

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

  • @darshanavarade1353
    @darshanavarade1353 4 года назад

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

  • @nadegeelikya4262
    @nadegeelikya4262 3 года назад

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

  • @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? :)

  • @chithraprakash8392
    @chithraprakash8392 5 лет назад

    Very good explanation.

  • @akshay4567
    @akshay4567 Год назад +1

    Excellent is not the word👍👍👍👍

  • @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

  • @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.....

  • @rahuljha3657
    @rahuljha3657 3 года назад +3

    What an explanation that was!! 👍👍

  • @vishalmankar4969
    @vishalmankar4969 Год назад +2

    thanks..

  • @methods5873
    @methods5873 5 лет назад +2

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

  • @benazeerinamdar6869
    @benazeerinamdar6869 5 лет назад +3

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

  • @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)

  • @akulahemasanthoshi2182
    @akulahemasanthoshi2182 2 года назад

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

  • @aliciamoore8028
    @aliciamoore8028 5 лет назад

    thanks for sharing

  • @rajwaghamode9896
    @rajwaghamode9896 2 года назад

    very good Shrey make more video on different different concepts like this video 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 2 года назад +1

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

  • @EDHOKATIESEDDAM
    @EDHOKATIESEDDAM 5 лет назад

    Soooper😍🤩

  • @shamakhan6598
    @shamakhan6598 2 года назад

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

  • @rahuldev6206
    @rahuldev6206 Год назад +1

    Best explanation forever

  • @ManishKumar-rz9ub
    @ManishKumar-rz9ub Год назад

    Great Explanation.

  • @lazalazarevic6192
    @lazalazarevic6192 4 года назад

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

  • @tusharchaudhari733
    @tusharchaudhari733 2 года назад

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

  • @Coding_and_Gaming
    @Coding_and_Gaming 2 года назад

    very good explanation thnx very much

  • @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?

  • @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?

  • @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

  • @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]?

  • @kalpakkarmore6555
    @kalpakkarmore6555 4 года назад

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

  • @SaddamHussain-bc9yh
    @SaddamHussain-bc9yh 5 лет назад

    Can u upload video on trigger ?

  • @VenkataraoThatha
    @VenkataraoThatha 5 лет назад +1

    Plz upload Triggers .... concept

  • @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?

  • @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

  • @PavaneswarSatyaMatlapudi
    @PavaneswarSatyaMatlapudi Год назад +1

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

  • @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 😊

  • @babykumari2753
    @babykumari2753 3 года назад

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

  • @vigneshperumal7272
    @vigneshperumal7272 5 лет назад +1

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

  • @shahidafrid526
    @shahidafrid526 2 года назад

    Please make a video on Salesforce maps

  • @sahilm9598
    @sahilm9598 4 года назад

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

  • @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?

  • @Kings238
    @Kings238 Год назад

    supperb

  • @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?

  • @monalichichghare3564
    @monalichichghare3564 2 года назад

    2master detail and 38 lookup relationship

  • @naveenreddy7152
    @naveenreddy7152 2 года назад

    2 master detail relationships and 38 lookup relationship data types

  • @ADITYA5777
    @ADITYA5777 4 года назад

    2 M-D and 25 Lookup

  • @pantalaeswaravinash9544
    @pantalaeswaravinash9544 Год назад

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

  • @sushant5753
    @sushant5753 2 года назад

    We can creare 40 lookup realtionship and 2 master deatil realtionship

  • @utkarshnelwadkar9577
    @utkarshnelwadkar9577 2 года назад

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

  • @GaliMuchatlu
    @GaliMuchatlu 5 лет назад

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

  • @fellinlove2651
    @fellinlove2651 5 лет назад

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

  • @philnewman7613
    @philnewman7613 4 года назад

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

    • @sachinrnayak3420
      @sachinrnayak3420 2 года назад

      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.

  • @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

  • @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.

  • @ivamandic5152
    @ivamandic5152 4 года назад

    ILY

  • @aswinbalaji1801
    @aswinbalaji1801 2 года назад

    Bro what is look and filed

  • @harshpatle8546
    @harshpatle8546 3 месяца назад +1

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

  • @zahidhashmi8081
    @zahidhashmi8081 5 лет назад

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

  • @gopiindian6589
    @gopiindian6589 5 лет назад

    25 lookup
    2 master detail

  • @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.

  • @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 ?

  • @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 года назад +1

    it's been increased to 40 now

  • @kanchaswapna1143
    @kanchaswapna1143 Год назад

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

  • @manasakadaveru465
    @manasakadaveru465 5 лет назад

    2 MD
    25 LU's...

  • @kalpanawankhede2682
    @kalpanawankhede2682 2 года назад

    25 is the limet.

  • @ankurkansal3511
    @ankurkansal3511 5 лет назад +1

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

  • @rushalikawale8032
    @rushalikawale8032 3 года назад

    What is lookup ?

    • @sachinrnayak3420
      @sachinrnayak3420 2 года назад

      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.

  • @roopareddy3537
    @roopareddy3537 Год назад

    Hlo tell slowly ND neatly

  • @hemanthkumarng8996
    @hemanthkumarng8996 3 дня назад

    40

  • @ashiqueraju1330
    @ashiqueraju1330 11 месяцев назад

    25 relationship in a single object

  • @AMITKUMAR-rb6nr
    @AMITKUMAR-rb6nr 5 лет назад

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

  • @hariswaroop3780
    @hariswaroop3780 5 лет назад

    40 lookups and 2 master details

  • @bijendarrawat5562
    @bijendarrawat5562 2 года назад

    Kindly speak slowly......

  • @hemlatha898
    @hemlatha898 Год назад +1

    👍