You need to sign in to do that
Don't have an account?

sharing rules
Hi,
If i dont wrire With sharing and without sharing in fornt of calss. what is the default for class?
Regards,
Anil
If i dont wrire With sharing and without sharing in fornt of calss. what is the default for class?
Regards,
Anil
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_keywords_sharing.htm
Use With Sharing when the User has access to the records being updated via Role, Sharing Rules, Sales Teams any sort of sharing really.
Without Sharing is reserved for cases where the User does not have access to the records, but there is a need to update them based on user input.
Also the With / Without Sharing commutes and if a class doesn't have an explicit declaration, the sharing context of the calling class is inherited.
Rakesh