PDI · Question #51
A software company uses the following objects and relationships: - Case: to handle customer support issues - Defect_c: a custom object to represent known issues with the company's software…
The correct answer is D. Share the parent Case and Defect_c records. To share a specific Case-Defect_c junction object record, sharing access must be granted to both of its parent Case and Defect_c records.
Question
A software company uses the following objects and relationships:
- Case: to handle customer support issues
- Defect_c: a custom object to represent known issues with the company's software
- case_Defect__c: a junction object between Case and Defector to represent that a defect Is a
customer issue What should be done to share a specific Case-Defect_c record with a user?
Options
- AShare the Case_Defect_c record.
- BShare the parent Case record.
- CShare the parent Defect_c record.
- DShare the parent Case and Defect_c records.
How the community answered
(20 responses)- A10% (2)
- C5% (1)
- D85% (17)
Why each option
To share a specific Case-Defect_c junction object record, sharing access must be granted to both of its parent Case and Defect_c records.
Sharing the junction object directly is not the primary mechanism, as its access is inherently controlled by its parent masters in a master-detail relationship.
Sharing only the parent Case record is insufficient as the junction object also has a master-detail relationship with Defect_c.
Sharing only the parent Defect_c record is insufficient as the junction object also has a master-detail relationship with Case.
Junction objects derive their sharing from both parent master records. Therefore, to share a specific Case_Defect_c record with a user, access to both the related Case record and the related Defect_c record must be explicitly granted.
Concept tested: Junction object sharing model
Source: https://help.salesforce.com/s/articleView?id=sf.dev_understanding_relationships.htm&type=5
Topics
Community Discussion
No community discussion yet for this question.