Wednesday, October 7, 2015

Difference between master-detail relationships and lookup relationships

Difference between master-detail relationships and lookup relationships

Master-detail relationship

Lookup relationship

You can define master-detail relationships between custom objects or between a custom object and a standard object (standard object must be the parent).

You can define a relationship between any two objects, standard or custom.

When a record in a master object (parent) is deleted, all the records in the detail object (child) that are related to that master record will be deleted.

When a parent object is being deleted, you can configure a child object to either clear the parent record value in the child record or prevent deletion of the parent record.

All child records must have a related parent record.

The parent record may not require a related parent record.

The ownership of the child record is determined by the related parent record. Child records do not have an owner.

Each child record has an owner and is not related to the parent record.

The detail record inherits sharing and security from the master record.

There is no security or inheritance between related parent and child records.

To relate an object to another object, no records should exist in the child object.

To relate an object to other objects, there is no condition on the number of records.

If you have the Roll-Up Summary field in the parent object, any create, edit, or delete action in the child record will trigger an edit action in the parent object. If you have a validation rule and other rules in parent object, the validation rules will trigger for the parent object.

You cannot create the Roll-Up Summary field in the lookup relationship using out-of-the-box Salesforce functionality.

Supports cross-object workflow. You can configure a field update action to update a field in the parent record using a value from the child record.

Does not support cross-object workflow.

To create a master-detail relationship for an existing object with records as the child object, you can initially define it as a lookup relationship, populate all parent fields for all records, and then change the relationship to a master-detail relationship.

You can build a many-to-many object relationship using two master-detail relationships in a single custom object, which is known as a junction object in that case. 

Thanks for reading...


Tejaswi Ramavathu said...

I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in Salesforce, kindly contact us
MaxMunus Offer World Class Virtual Instructor led training on Salesforce. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
For Demo Contact us.
Nitesh Kumar
Skype id: nitesh_maxmunus
Ph:(+91) 8553912023

Johan Yu said...

Great findings!

Natalya Murphy said...

This is a fantastic summary. I've been struggling to understand the differences between the two types and this has been extremely helpful. Thank you!

sangi yadav said...

PREREQUISITE: Sales force certified Developer/Administrator
Veeva CRM is the first solution created specifically for life sciences and the unique needs of human, consumer, and animal health.
With advanced capabilities for planning and coordination across all channels, and predictive analytics through Veeva CRM Suggestions, Veeva CRM is the end-to-end solution that helps you adapt quickly to changing business needs and drive business growth.
• Coordinate planning and execution across teams: Improve collaboration across key account managers, field reps, medical, and marketing to boost execution and deliver a personalized customer experience.

• Boost productivity while remaining compliant: Optimize sales utilization and alignment while ensuring field teams engage the right providers in the right activities.

• Drive continuous improvement faster: Enhance your customer engagement model by leveraging the latest process best practices, learning what works and evolving quickly.

Module 1: Introduction to VEEVA
Module 2: Overview of Admin Console
Module 3: Data Access Security
Module 4: Application Configuration
Module 5: Creating Custom Objects.
Module 6: Veeva Configuration Utilities
Module 7: My Accounts Configuration
Module 8: Account Object
Module 09: Veeva Functionality Part 1
Module 10: Products and My
Module 11: Products Metrics Configuration
Module 12: Call Management Configuration
Module 13: Veeva Functionality Part 2
Module 14: Cycle Plan Configuration
Module 15: Sample Management
Module 16: Data Loading
Module 17: Territory Management Application
Module 19: VMobile Tablet
Module 20: Creating Reports and Dashboards
Module 21: VInsights Configuration
Module 22: Advanced Custome Setting

For Joining online training batches please feel free to call or email us.
Name ::saurabh
Email :
Skype id-saurabhmaxmunus
Contact No.-+91-8553576305
Company Website –

akhila priya said...

The information which you have provided is very good. It is very useful who is looking for salesforce Online Course

JIMY said...

Thank you for sharing the information.
Security Solutions

Post a Comment

| ,