Activity Forums Salesforce® Discussions What is the difference between the with Sharing and with out Sharing keywords.

  • What is the difference between the with Sharing and with out Sharing keywords.

    Posted by MOHIT on August 31, 2020 at 12:09 pm

    What is the difference between the with Sharing and with out Sharing keywords in Salesforce?

    Anjali replied 3 years, 7 months ago 2 Members · 1 Reply
  • 1 Reply
  • Anjali

    Member
    August 31, 2020 at 12:09 pm

    Use the with sharing keywords when declaring a class to enforce the sharing rules that apply to the current user.Use the without sharing keywords when declaring a class to ensure that the sharing rules for the current user are not enforced.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos