Salesforce Certified Sharing and Visibility Architect — Question 45
Universal Containers (UC) is implementing Sales Cloud. During the last quarter of the financial year, sales agents help each other close deals. They requested a solution in Salesforce to allow them to specify an assistant agent on the opportunity record. When the sales agent changes the assistant field, the system should automatically remove access from the previous assistant and grant access to the new assistant.
What is the optimum solution to meet the requirements?
Answer options
- A. Use opportunity team and create an assistant field, use apex to share opportunities with the assistant agent.
- B. Use apex sharing to share and unshare opportunities with the assistant agent.
- C. Use sharing rule to share opportunities with the assistant agent.
- D. Use share group to share opportunities with the assistant agent.
Correct answer: B
Explanation
The correct answer is B because apex sharing allows for programmatic control over sharing, enabling the system to efficiently remove access from the previous assistant and grant it to the new one. Options A and C do not provide the necessary automation for changing access based on the assistant field, while option D does not fit the requirement as share groups do not allow for dynamic changes based on field updates.