You need to sign in to do that
Don't have an account?
N>Help Splitting CSV data correctly
my sample csv contains this code
User,Monthly Income,Age,Debt,Gender,
John Doe,"$30,000.00",35,"$2,000.00",Male,
Mary Smith,"$20,000.00",30,"$900.00",Female,
the code I'm following only has this code for the CSV part
csvAsString = csvFileBody.toString();
csvFileLines = csvAsString.split('\n');
string[] csvRecordData = csvFileLines[0].split(',');
I tried looking for solutions about this problem and the closest I found is this
https://developer.salesforce.com/forums/ForumsMain?id=906F000000092l6IAA
Does anyone have a better idea/code to deal with this problem?
User,Monthly Income,Age,Debt,Gender,
John Doe,"$30,000.00",35,"$2,000.00",Male,
Mary Smith,"$20,000.00",30,"$900.00",Female,
the code I'm following only has this code for the CSV part
csvAsString = csvFileBody.toString();
csvFileLines = csvAsString.split('\n');
string[] csvRecordData = csvFileLines[0].split(',');
I tried looking for solutions about this problem and the closest I found is this
https://developer.salesforce.com/forums/ForumsMain?id=906F000000092l6IAA
Does anyone have a better idea/code to deal with this problem?
http://www.sfdcpoint.com/salesforce/import-csv-file-using-apex-visualforce/
I just want some code for the filtering of data from csv (probably a better version of my code above)