You need to sign in to do that
Don't have an account?
Silpi Roy 14
With Sharing and without sharing
Suppose I have 10 Opportunities, out of which I have access to only 4 opportunities and I don’t have access on standard field of currency type – Amount filed on opportunity. If I perform SOQL query within an apex class which is running under With sharing mode to pull-out Opportunity Name and Amount. So how many records will return and what data I will see in amount?
Ref: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_keywords_sharing.htm
https://www.sfdc-lightning.com/2018/11/with-sharing-and-without-sharing-in.html