Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Sharing-and-Visibility-Designer Topic 9 Question 29 Discussion

Actual exam question for Salesforce's Sharing and Visibility Designer exam
Question #: 29
Topic #: 9
[All Sharing and Visibility Designer Questions]

Universal Containers (UC) service reps are assigned to a profile which has ''View All'' in Case

object (Private OWD). To make sure service reps have access to all relevant information to

attend to customer requests, which two details should a salesforce Architects consider?

Choose 2 answers:

Show Suggested Answer Hide Answer
Suggested Answer: B, D

How can an architect achieve this

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_per

ms_enforcing.htm

Example: To check the field-level read permission of the contact's email field before querying

for this field:

if (Schema.sObjectType.Contact.fields.Email.isAccessible()) {

Contact c = [SELECT Email FROM Contact WHERE Id= :Id];

}

Answer for B -

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_key

words_sharing.htm

The ''with sharing'' keyword allows you to specify that the sharing rules for the current user are

considered for the class. You have to explicitly set this keyword for the class because Apex code

runs in system context. In system context, Apex code has access to all objects and fields---

object permissions, field-level security, sharing rules aren't applied for the current user. This

strategy ensures that code doesn't fail to run because of hidden fields or objects for a user.


Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77