Câu 45: Salesforce Certified Platform Developer I
Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own. What should the…
Nội dung câu hỏi
Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own. What should the developer use to enforce sharing permissions for the currently logged-in user while using the custom search tool?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. Use the schema describe calls to determine if the logged-in user has access to the Account object.
- B. Use the UserInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user.
- C. Use the with sharing keyword on the class declaration. — đáp án hiện tại
- D. Use the without sharing keyword on the class declaration.
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.