Activity › Forums › Salesforce® Discussions › Can we use seeAllData = true in Test class in Salesforce? Salesforce® Discussions Can we use seeAllData = true in Test class in Salesforce? Posted by Anjali on April 24, 2020 at 12:53 PM Can we use seeAllData = true in Test class in Salesforce? Marziya replied 6 years, 1 month ago 3 Members · 2 Replies 2 Replies MOHIT Member April 24, 2020 at 1:08 PM Yes, You can Use the isTest annotation to define classes or individual methods that only contain code used for testing your application. The isTest annotation is similar to creating methods declared as test Method. IsTest(SeeAllData=true)Annotation [adinserter block='9'] Marziya Member April 24, 2020 at 1:10 PM Yes,we can. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me