In salesforce, we have 2 types of object
Setup objects are like : (Where we can Create)
We cannot create a test data for non-setup objects. That time we need use in our test class as "@isTest(seeAllData = true)"
Setup objects are like : (Where we can Create)
Profile
Record Type,
Users
Non Setup Objetcs are like :
Contact
Lead
Account
Non-Setup objects are standard objects like Account or any custom object.
Setup objects are Group1, GroupMember, QueueSObject, User2, UserRole, UserTerritory, Territory, etc.
Setup objects are Group1, GroupMember, QueueSObject, User2, UserRole, UserTerritory, Territory, etc.
We cannot create a test data for non-setup objects. That time we need use in our test class as "@isTest(seeAllData = true)"
Great article found good one here as well,
ReplyDeleteSeeAllData in salesforce