Activity Forums Salesforce® Discussions What is @isTest annotation? When you will use it?

  • Marziya

    Member
    April 3, 2020 at 12:44 pm

    Hii Sumit,
    The isTest(SeeAllData=true) annotation is used to open up data access when applied at the class or method level. However, using isTest(SeeAllData=false) on a method doesn't restrict organization data access for that method if the containing class has already been defined with the isTest(SeeAllData=true) annotation.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos