Plat-Dev-201 practice question 24 of 30

Which two settings must be defined In order to update a record of a junction object? Choose 2 answers

Full set: 204 questions
Answer options
A: Read/Write access on the secondary relationship
B: Read/Write access on the primary relationship Correct answer
C: Read/Write access on the junction object Correct answer
D: Read access on the primary relationship
Correct Answer:
B. Read/Write access on the primary relationship; C. Read/Write access on the junction object
Explanation

To update a record in Salesforce, a user needs two levels of access: object-level permission and record-level access. First, the user's profile or permission set must grant "Edit" access to the junction object itself (Object-Level Security). Second, for a junction object (which is the detail in two master-detail relationships), record-level access is controlled by the master records. The primary master-detail relationship specifically controls ownership and sharing. Therefore, the user must have Read/Write access to the primary master record to be able to edit the associated junction object record.

Why Incorrect

A. While access to the secondary master is important, the primary master relationship dictates the sharing and ownership rules for the junction record, making its access critical for updates.
D. Read-only access on the primary master record is insufficient. To edit a child record in a master-detail relationship, the user requires Read/Write access to the parent.

References

Salesforce Security Guide, "Object-Level Security". This guide explains that users need "Edit" permission on an object's record type in their profile or permission set to update records of that object.

Salesforce Help, "Master-Detail Relationship Overview". This document states, "The owner of the master record implicitly owns the detail and subdetail records... Access to detail and subdetail records is driven by a user's access to the master record." This implies that to edit the detail (junction), you need edit access to the master.

Scroll to Top