Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Salesforce by (55.6k points)

Could someone tell me what is the difference between sharing and without sharing in Salesforce?

1 Answer

0 votes
by (119k points)

Keywords like sharing and without sharing exist in Salesforce, which determines the degree of accessibility of particular data to current users. With sharing keyword is explicitly allows specifying the sharing rules for the current user are considered for the class, according to Salesforce. Whereas, without sharing keyword to declare a class to ensure that the sharing rules for the current user are not enforced.

Aiming to be an expert in Salesforce and crack the Salesforce certified Administrator certification exam? Then check out the Salesforce certification course from Intellipaat which provides a course of 36hrs with 52hrs for projects and exercises to help you gain the necessary skillset.

Also, do have a look at our YouTube video on Salesforce Training from our experts to help you gain more insight.

Browse Categories

...