QuestionQ11
Programmatic SharingUniversal Containers (UC) has a team that analyzes customer orders for fraud. The team requires access to Invoice records (a custom object with Private OWD). UC uses complex rules to control user access. The Salesforce Architect recommends Apex managed sharing to meet these requirements.
Which two recommendations should a Salesforce Developer consider when implementing these changes?
Choose two
- A Use runAs system method to test different users accessing these records.
- B Use “Without Sharing” keyword to make sure record visibility will be considered.
- C Use “With Sharing” keyword to make sure record visibility will always be considered.
- D Use “With Sharing” keyword to enforce field-level security.
Community Discussion