Activity › Forums › Salesforce® Discussions › Why Keyword “without Sharing” Is Introduced In Salesforce Apex? › Reply To: Why Keyword “without Sharing” Is Introduced In Salesforce Apex?
MemberSeptember 20, 2018 at 3:01 pm
Let’s take example, there is classA declared using “with sharing” and it calls classB method. classB is not declared with any keyword then by default “with sharing” will be applied to that class because originating call is done through classA. To avoid this we have to explicitly define classB with keyword “without sharing”.