Which Parent Controls Access in a Junction Object with Two Master-Detail Relationships?
I have 3 custom objects in Salesforce:
- Patient
- Doctor
- Appointment
Appointment is a junction object with:
- Master-Detail relationship to Patient
- Master-Detail relationship to Doctor
I set:
- Patient OWD = Private
- Doctor OWD = Public Read/Write
There are 2 users and both users can create Patient, Doctor, and Appointment records.
My confusion is:
Since Appointment has 2 master-detail parent objects, which parent controls the Appointment record access?
If Patient is Private but Doctor is Public Read/Write, then what will happen to Appointment record visibility?
I only learned OWD and role hierarchy yet, not sharing rules.