Iam loading a CSV file via Static Resourced to test my APEX code. I am using the following code in my test:
List<sObject> ls1 = Test.loadData(Account.sObjectType, 'TestAccount');
CSV file look like below:
FirstName,LastName,PersonEmail
TestName1,TestName12,[email protected]
TestName2,TestName22,[email protected]
I am getting the following error:
System.SObjectException: Business Account may not use Person Account field PersonEmail
I want to load person account test data. For this, how can i use/assign personAccount record type in csv file to overcome this exception.
Can anyone help me on this.
Thanks,