nerdexam
Salesforce

PDII · Question #76

A developer has created a Team Member sObject that has a Master-Detail relationship to a Project sObject and a Lookup relationship to the User sObject. The developer must ensure that a User listed…

The correct answer is C. Create a Team Member Trigger that inserts Project_Share records. See the full explanation below for the reasoning.

Question

A developer has created a Team Member sObject that has a Master-Detail relationship to a Project sObject and a Lookup relationship to the User sObject. The developer must ensure that a User listed on a Team Member record has Read-Write access to the parent Project record. How can the developer accomplish this if the Project sObject has a Private sharing model and thousands of Project records?

Options

  • ACreate a Controller that uses the Without Sharing keyword
  • BCreate a Criteria-Based Sharing Rule on the Project sObject
  • CCreate a Team Member Trigger that inserts Project_Share records
  • DCreate a Project Sharing Rule that shares to the Team Member Group

How the community answered

(22 responses)
  • A
    5% (1)
  • B
    9% (2)
  • C
    73% (16)
  • D
    14% (3)

Community Discussion

No community discussion yet for this question.

Full PDII Practice