Concepts or coding lessons of Salesforce that you can implement easily

3 Easy Ways To Make Learn System mode & User mode Components In Salesforce Faster

System mode: process running is NOT DEPEND on the current user permissions to the object access, field level security, sharing rule. In which the level permissions of the current user are ignored.

User mode: process running is DEPEND on the current user permission to the object access, field level security, sharing rule. In which the level permissions of the current user are enforced.

System Mode Components


  • Apex Trigger 
  • Apex Webservices (SOAP API and REST API)
  • All types of Apex Jobs 
  • Apex Test method without System.runAs() 
  • Visualforce Page (StandardController with extension) 
  • Validation Rule 
  • All Types of calculation behind the formula 
  • Rollup Summary 
  • Workflow Rule
  • Process Builder
  • If InvocableMethod is called from Process Builder
  • If Visual flow is called from REST API 
  • If Visual flow is called from Process Builder
  • If Visual flow is called from Custom Button 
  • If Visual flow is called from Workflow
  • Approval Process 
  • Auto Response Rule 
  • Assignment Rule
  • Escalation Rule
  • Publisher Action 
  • Custom Button 
  • Macros 
User Mode Components


  • Test method with System.runAs()
  • Visualforce Page (StandardController)
  • Visual Workflow or flow
  • If InvocableMethod is called from Visual flow
  • Annonymous Apex
  • Chatter in Apex
  • Email Service
Learn Force.com Enterprise Architecture to accelerate your Career with Salesforce!!! 

Decided on Run time based on Component Context


  • If InvocableMethod is called from REST API - It depends on with sharing OR without sharing of apex class
  • If Visual flow is called from Apex - It depends on with sharing OR without sharing of apex class which executes flow
  • If Visual flow is embedded in Visualforce - Depends on Visualforce page context
  • Visualforce Page (CustomController) - It depends on with sharing OR without sharing of apex class
  • Visualforce Component - It depends on a Visualforce page where it is used

Latest Salesforce Interview Questions and Answers:

More Salesforce Blogs:

How To Fetch All Private Reports Of Particular Users In Salesforce?
Check out Salesforce Daily Limit Only in 5 Simplest Steps
Learning Pagination In Salesforce Is Not Difficult At All ! You Just Need 3 Easy Steps
How To Learn Get Field Values From Visualforce Page To Apex Class Controller Without Losing Your Mind
Main Difference Between ISBLANK And ISNULL in Salesforce
How To Get Total Amount Of Records Processed In Batch Job In 10 Minutes And Still Look Your Best 
Export VisualForce Data into Excel Sheet in 3 Easiest Steps

Enjoy! If you have any questions, comments etc. please feel free to let me know. As always, please feel free to get in touch me as I would be more than happy to assist you with any of your Salesforce development needs.
loading...

No comments:

Post a Comment