This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /Salesforce

How to Create Master Detail Relationship in Salesforce

Updated on:
June 8, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to build a Master-Detail Relationship between Salesforce objects.

Quick summary

A Master-Detail Relationship in Salesforce links a child object tightly to a parent object, controlling sharing, deletion, and roll-up summaries. This step-by-step guide walks you through creating the relationship using Advanced Setup and the Fields & Relationships menu.


Steps

  1. Click the gear icon at the top of your dashboard.
  2. Select Open Advanced Setup.
  3. At the top left of the page, click Open Manager.
  4. Select the child object from the object list.
  5. Choose Fields & Relationships from the object menu.
  6. Click New to create a new field.
  7. Select Master-Detail Relationship as the Data Type.
  8. Click Next to proceed.
  9. Select the parent object you want to link to.
  10. Click Next to continue.
  11. Configure field details as needed.
  12. Click Next to proceed.
  13. Set field-level security, then click Next.
  14. Select the layouts where the field should appear.
  15. Click Next to continue.
  16. Click Save to complete your Master-Detail Relationship.

📌 Why this matters

The Master-Detail Relationship in Salesforce is a foundational data modeling feature that enforces a strict parent-child dependency between objects, enabling automatic roll-up summary fields, cascading deletes, and inherited sharing rules. Administrators and developers use this relationship type to maintain data integrity across related records without manual maintenance. Properly configuring Master-Detail Relationships ensures that child records like line items or expenses are always tied to a valid parent record such as an order or account. Mastering this setup is essential for any team building scalable, structured data architectures in Salesforce.
Your product deserves an interactive demo
Start free
Similar Articles
Enable Inline Editing in Salesforce ReportsEnable Inline Editing in Salesforce Reports
Salesforce

How to Enable Inline Editing in Salesforce Reports

Madhav Bhandari
Director of Marketing @ Storylane
Salesforce

How to Enable Knowledge in Salesforce

Madhav Bhandari
Director of Marketing @ Storylane
Salesforce

How to Enable MFA in Salesforce

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Hubs
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it