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
- Click the gear icon at the top of your dashboard.
- Select Open Advanced Setup.
- At the top left of the page, click Open Manager.
- Select the child object from the object list.
- Choose Fields & Relationships from the object menu.
- Click New to create a new field.
- Select Master-Detail Relationship as the Data Type.
- Click Next to proceed.
- Select the parent object you want to link to.
- Click Next to continue.
- Configure field details as needed.
- Click Next to proceed.
- Set field-level security, then click Next.
- Select the layouts where the field should appear.
- Click Next to continue.
- Click Save to complete your Master-Detail Relationship.

