You need to sign in to do that
Don't have an account?
Ankit Gupta SFDCLearner
withsharing and without sharing
Hello Friends,
I have 3 Classes in attached Image
a) abc() Normal,
b) Efg() is with sharing
c) xyz() is without sharing
What happened if we are calling other class methods in any class, will all methods run in the calling class mode or it will run accordingly to it’s own class behavior.
I have 3 Classes in attached Image
a) abc() Normal,
b) Efg() is with sharing
c) xyz() is without sharing
What happened if we are calling other class methods in any class, will all methods run in the calling class mode or it will run accordingly to it’s own class behavior.
1. efg method executes with sharing and xyz class executes without sharing when its called from class abc.
2. xyz method executes without sharing and abc class without sharing when its called from class efg
3. efg method exeuctes with sharing and abc class without sharing when its called from class xyz.
Please mark as best answer if it answered your question.
Thanks
Gururaj B