• Timothy Sinard
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hi Team,

 

I have one doubt on the System.runAs() method .

 

Can I use this system.runAs() in the Apex class not the test class?

 

I want to use this method in apex class to execute block of code based on the system adminstrator user.

 

Please help me .If i can use then what are the procedure i need to take care.If not please give me the reson.

 

Thanks in advance