Master-Detail Relationship

instagram | bugendaitech  Twitter | bugendaitech  Linkedin | bugendaitech

Master detail relationship defines the relationship between parent and child record. Master detail table relates the parent relation and the detail defines the child relationship. If the master detail table is deleted then the child records data is also deleted because they are directly dependent on the master table. The master-detail relationship has an object in a master-detail relationship and can also contain a  field type called a rollup summary. Rollup summary fields store values aggregated from the child records in master detail relationship.

For example: Sales Order example you could create an “Order Total” rollup summary field that automatically sums the amount of all line items. Rollup summary fields can either count records or min, max and sum specific fields which based upon all records or records meeting certain criteria for eg., matching record type, created date before today, Boolean value.

 

MASTER-DETAIL RELATIONSHIP

These are the main things that need to consider in the “Master-Detail Relationship”

  • Parent reference becomes mandatory for ‘‘child objects’’.
  • In Master details, standard objects can’t become child objects.
  • Master details relationship support cascading delete. If you delete the parent class, cascade auto  delete the child class

Many-to-Many Relationship

There are some scenarios where you will need to implement a many-to-many relationship where  a one record relationship can be associated with many records on the other side. Sometimes there are a lot of records in one object. In case this salesforce.com uses an intermediate object, which they refer to as a junction object, they deal with many objects at a time. In order to implement a junction object, we simply create a custom object and add two master-detail relationships to the objects on each side of the relationship.

Hоw  we  Сreаte  Mаster-detаil  Relаtiоnshiр

  • Create a minimum two custom оbjeсts
  • Сlісk оn оbjeсt  >  Click  “Quick  Ассess  Menu”  >  Аdd  “New  Field”.
  • Сhооse  Field  Type  (Mаster  Detаil  Relаtiоnshiр)  >  Next.
  • Select  the  аррrорriаte  Оbjeсt  оn  whiсh  the  relаtiоnshiр  shоuld  be  estаblished
  • Fill  in  the  detаils  аnd  рrосeed  tо  the  next  steр.
  • Рrоvide  with  аll  the  required  seсurity  level  сheсks  аnd  рrосeed  tо  the  next
  • With  the  аbоve  steрs,  the  MDR  relаtiоnshiр  is  estаblished.  The  belоw  ss  shоws.
Summary
Article Name
Master-Detail Relationship
Description
What exactly is a master-detail relationship? How to create Master-detail relationship and what are the things to consider for using it. Know how Salesforce Professional services can assist you in this.
Author
Publisher Name
BugendaiTech Pvt Ltd
Publisher Logo
Spread the updates

8 comments

Pretty section of content. I just stumbled upon your blog and in accession capital to assert that I acquire
in fact enjoyed account your blog posts. Any way I will be subscribing to your feeds and even I achievement you access consistently fast.

Hi everybody, here every one is sharing these knowledge, so it’s
pleasant to read this website, and I used to pay a visit this weblog
everyday.

Awesome blog! Do you have any helpful hints for aspiring writers?
I’m planning to start my own blog soon but I’m a little
lost on everything. Would you recommend starting with a free platform like WordPress or
go for a paid option? There are so many choices out there that I’m
completely overwhelmed .. Any tips? Kudos!

Thanks for the strategies you are revealing on this site. Another thing I would like to say is always that getting hold of copies of your credit report in order to inspect accuracy of each and every detail is the first step you have to undertake in credit restoration. You are looking to clean up your credit report from dangerous details mistakes that ruin your credit score.

You actually make it seem so easy with your presentation but I find this topic to be actually something which I think I would never understand. It seems too complicated and extremely broad for me. I’m looking forward for your next post, I?ll try to get the hang of it!

Hi, I wish for to subscribe for this webpage to obtain most recent updates, therefore where can i do it please assist.

I’ve learn a few just right stuff here. Certainly worth bookmarking for revisiting.
I surprise how a lot effort you set to make this kind of magnificent informative
web site.

You can definitely see your skills in the work you write.
The world hopes for even more passionate writers such as you who are not afraid
to say how they believe. At all times go after your heart.

Here is my web blog … tracfone special

Leave a reply