> ## Content Index
> Fetch the complete content index at: https://www.namastesalesforce.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# 05 · Junction objects in practice
- URL: https://www.namastesalesforce.com/training/data-model/junction-objects-in-practice/
- Published: 2025-04-26T09:00:00.000Z
- Updated: 2025-04-26T09:00:00.000Z
- Description: Many-to-many done properly: two master-details, sharing inherited from both sides, and a real example built end to end.
- Author: Swarnil Singhai
- Tags: Data Model Basics, #training, #duration-15m, #Import 2026-09-03 19:13

Many-to-many done properly: two master-details, sharing inherited from both sides, and a real example built end to end.

## The pattern

A Course can have many Students, a Student many Courses: the Enrollment junction object carries two master-detail relationships and any fields that belong to the pair — grade, date, status.

## Sharing rides the master-details

A junction record is visible only to users who can see BOTH parents. That is usually what you want, and it is also the first place to look when someone cannot see an enrollment.

## Practice in your org

- Open your Developer Edition org and follow along step by step
- Change one thing at a time and note what happens
- When something breaks, read the error before searching for it