Salesforce
PDII · Question #210
Universal Containers implements a private sharing model for the Convention_Attendee_ _c custom object. As part of a new quality assurance effort, the company created an Event_Reviewer_ _c user…
The correct answer is B. Create an After Insert trigger on the Convention Attendee custom object, and use Apex Sharing. See the full explanation below for the reasoning.
Question
Universal Containers implements a private sharing model for the Convention_Attendee_ c custom object. As part of a new quality assurance effort, the company created an Event_Reviewer _c user lookup field on the object. Management wants the event reviewer to automatically gain Read/Write access to every record they are assigned to. What is the best approach to ensure the assigned reviewer obtains Read/Write access to the record?
Options
- ACreate a criteria-based sharing rule on the Convention Attendee custom object to share the
- BCreate an After Insert trigger on the Convention Attendee custom object, and use Apex Sharing
- CCreate criteria-based sharing rules on the Convention Attendee custom object to share the records
- DCreate a Before Insert trigger on the Convention Attendee custom object, and use Apex Sharing
How the community answered
(30 responses)- A7% (2)
- B70% (21)
- C17% (5)
- D7% (2)
Community Discussion
No community discussion yet for this question.