With Sharing keyword for Restriction Rule in Salesforce
If “With Sharing” keyword is used in the Apex Class, then the SOQL won’t run in System Mode. It will run in User Mode and respect the Restriction Rules configured. Custom Field in User Object for User Criteria: Custom Field in the Custom Object for Record Criteria: Restriction Rule on the Custom Object: Sample Code: … Continue reading With Sharing keyword for Restriction Rule in Salesforce
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed