What is the system.runas() ?



What is the system.runas() ?..

Answer / Kamal Kishor

system.RunAs() is an Apex method that allows you to run a block of code as another user. It's used when you need to test or execute actions on behalf of another user.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Salesforce Interview Questions

How many ways we can share a record?

1 Answers  


What is an external id in salesforce? Which all field data types can be used as external ids?

1 Answers  


Is there any standard object which is also act as junction object ?

1 Answers  


What is the main difference between using datatable vs. Pageblocktable tags? : salesforce visualforce

1 Answers  


Difference between role and profile? : salesforce admin

1 Answers  


What are static resources? : salesforce admin

1 Answers  


What are the time-dependent workflow – considerations ?

1 Answers  


How can we enable visualforce editor? : salesforce visualforce

1 Answers  


What is difference between lookup and master details? : salesforce objects & fields

1 Answers  


What is a solution?

1 Answers  


What are maps in apex?

1 Answers  


How to create a mass email template in salesforce?

1 Answers  


Categories