Activity Forums Salesforce® Discussions What is inherited sharing in Salesforce?

  • Prachi

    Member
    December 12, 2019 at 7:03 am

    Hi,

    Inherited sharing keyword to define apex class as Inheritedsharing is available with the Salesforce winter’19 release in both Salesforce classing and lighting versions.

    – If the class is declared as inherited sharing, it runs in the sharing mode of the class that called it.
    – The keyword ‘inherited sharing’ is used to define an Apex class as Inherited sharing class.
    – If a class declared as inherited sharing, it runs as with sharing by default.
    – A class defined as Inherited sharing will only run in without sharing mode when it specifically called from an already established without sharing context.

    Thanks.

    • This reply was modified 4 years, 4 months ago by  Prachi.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos