You need to sign in to do that
Don't have an account?
admintrmp
Test.loadData() - Can we put the CSV files into a zip file?
We like to be very organized with our work and having tons of static resources is very messy in my opinion.
Is it possible to still use Test.loadData() using a CSV file that's been placed in a zip file? Like you can with CSS and Javascript files when calling them from Visualforce.
I tried to do the following but it didn't work:
Test.loadData(Contact.sObjectType, 'testdata/contacts');
No. The docs state that the static resource must be a CSV file. There's no support for extracting files from archives I'm afraid.
All Answers
No. The docs state that the static resource must be a CSV file. There's no support for extracting files from archives I'm afraid.
Ah, hopefully one for the future then! Thanks for the info.
To the IdeaExchange! :-)