What is System.RunAs ()?



What is System.RunAs ()?..

Answer / Umesh Chandra Saxena

System.RunAs() is a static method in Apex that allows you to impersonate a different user within the context of your code. This can be useful for testing access levels or permissions of other users.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Salesforce Interview Questions

How can you setup governor limit email warnings in apex ?

1 Answers  


How can we call child component controller method from the parent component controller method? : salesforce lightning component

1 Answers  


Do you know how to add javascript remoting to your visualforce page?

1 Answers  


What is a tabular report?

1 Answers  


What is force.com?

1 Answers  


What are custom objects in salesforce?

1 Answers  


What is wrapper class in salesforce?

1 Answers  


What is a Case Assignment Rule?

1 Answers  


What is a sobject type?

1 Answers  


Explain static field and their scope?

1 Answers  


What is difference insert () and database .insert ()?

1 Answers  


How many custom fields can I created in an object? : salesforce admin

1 Answers  


Categories