Why should we use sharing and without sharing in salesforce?
You can't use Salesforce with or subway surfers without sharing because it nullifies the current user's sharing policies. If you don't want the current user's sharing restrictions implemented when you declare a class, use the sans sharing keywords.
Answered Aug 5, 2024 · 4.5K Views Read answer →