Activity Forums Salesforce® Discussions What is default with sharing or without sharing in salesforce?

  • Marziya

    Member
    October 7, 2020 at 1:14 pm

    If a class is not declared either with sharing or without sharing, then by default, such a class is executed in system mode, i.e. without sharing mode; and current sharing rules remain in effect- which means that if any other class that has sharing enforced, calls such a non-specified-sharing class, then the called or .

  • Shweta

    Member
    October 13, 2020 at 3:46 pm

    If a class is not declared either with sharing or without sharing, then by default, such a class is executed in system mode, i.e. without sharing mode; and current sharing rules remain in effect- which means that if any other class that has sharing enforced, calls such a non-specified-sharing class, then the called or non-specified-sharing class is executed in “with sharing” mode.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos