Activity Forums Salesforce® Discussions What is the difference between with sharing and without sharing keywords in Salesforce?

  • Prachi

    Member
    December 12, 2019 at 7:07 am

    Hi,

    With Sharing - Enforce the sharing rules that apply to current user.

    Without Sharing - Doesn't enforce the sharing rules. If a class is not declared as either with or without sharing, the current sharing rules remain in effect.

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos