Activity Forums Salesforce® Discussions How do you use System runAs in Test class in salesforce?

  • Anuj

    Member
    May 11, 2020 at 2:08 pm

    The system method, System. runAs(),lets us write test methods that change user contexts to either an existing user or a new user. All of that user's record sharing is then enforced. You can only use runAs in a test method

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos