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

  • What is default with sharing or without sharing in salesforce?

  • Anuj

    Member
    October 5, 2020 at 4:17 pm

    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.

Viewing 1 - 3 of 3 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos