You need to sign in to do that
Don't have an account?

Dynamic CSV File loading into custom objects
I have two csv files with the following dummy data. Whenever, I upload it to the vf page, the apex class should read the first line
(which always contains the custom field names) and store the values in the next lines accordingly in the Account object. The number of of fields in the csv file can change time to time.
We can say that the template of the csv file is dynamic.
CSV File 1:
Account_no, Account_name, Account_branch, Account_City
100,Robert,Karlbagh,Delhi
200,Sam,Downtown,SanFransisco
CSV File 2:
Account_no,Accont_name,Account_city
400,Julie,London
500,Alia,Kolkata
Could anyone please help.
(which always contains the custom field names) and store the values in the next lines accordingly in the Account object. The number of of fields in the csv file can change time to time.
We can say that the template of the csv file is dynamic.
CSV File 1:
Account_no, Account_name, Account_branch, Account_City
100,Robert,Karlbagh,Delhi
200,Sam,Downtown,SanFransisco
CSV File 2:
Account_no,Accont_name,Account_city
400,Julie,London
500,Alia,Kolkata
Could anyone please help.
http://www.forcetree.com/2010/08/read-and-insert-records-from-csv-file.html