hiexam
salesforce · Certified-Sharing-and-Visibility-Architect · Q605 · multiple_choice · topic_1

What should a Salesforce architect recommend to make sure that users that gained access to a custom object record throu…

What should a Salesforce architect recommend to make sure that users that gained access to a custom object record through Apex managed sharing do not lose access to it when its owner is changed?
  • A.Use “With Sharing” keyword to make sure record visibility will be considered.
  • B.Create a specific Apex Sharing Reason for the custom object.
  • C.Create a new record in _Share object with RowCause “Manual”.
  • D.Use “runAs” system method in Apex classes to enforce visibility.
Explanation
B. A way to grant access that won't be removed when the owner changes is by using Apex to create Share records with a specific "RowCause" or Sharing Reason.

Reference: examtopics_top_comment

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.