Salesforce Developers Salesforce Consultants Salesforce Salesforce Developers

HELLO|WELCOME TO CLOUD HELP|A SALESFORCE SOLUTION|WE LOVE TO DO CREATIVE THINGS|SALESFORCE CONSULTANTS FROM INDIA

System Mode and User Mode in Salesforce!

Another most confusing thing in Apex programming is System Mode and User Mode!

Few state forward points:

System mode -

  • Its running apex code by ignoring user's permissions. So if logged in user does not have create permission but they will able to create a record.
  • Apex code has access to all objects and fields, sharing rules aren't applied for the current user. 
  • All apex code run in system mode. It ignores user's permissions. Only exception is anonymous blocks like developer console and standard controllers.


User mode - 

  • Its running apex code by respecting user's permissions and sharing of records. So, logged in user does not have create permission they are not able to create a record.
  • Only standard controllers and anonymous blocks like developer console run in user mode.

Share this:

CONVERSATION

0 comments:

Post a Comment

Navneet kumar, Software consultant from delhi, India. Basically from Bisfi, Madhubani Bihar. Software Engineer!

Navneet kumar bisfi madhubani bihar

Navneet bisfi madhubani bihar

Nabu Nabbu bisfi madhubani bihar

Navneet Software consultant from delhi

Navneet kumar Software consultant from delhi

Navneet kumar Software Engineer bisfi madhubani bihar

Nabu Nabbu Software Engineer bisfi madhubani bihar

bisfi madhubani bihar

Salesforce

Salesforce Consultant

Salesforce Developer

Salesforce Best Blog

Salesforce Cloud Computing

Cloud Computing

Salesforce Customizations

Salesforce Developments

Apex Salesforce

Apex Controllers

Salesforce Triggers, classes, work flows