Activity Forums Salesforce® Discussions How to use System.RunAs in test class in Salesforce?

  • Kirandeep

    Member
    May 15, 2020 at 5:23 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