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

How to coverting lower case to uppercase text while uploading a csv file.
Hi All,
I have wirtten a apex code and Vf page for uplaoding a csv file to create a new Account, Contact. In my file the account is given in lower case letter, i need to change it to upper case letter and then need to save in to salesforce. I tried but can't get solution for this. Kindly any tell how to resolve this and also tell me any links for this. Here i have attached the code also. Thanks in advance
Code:
for (Integer i=1;i<filelines.size();i++)
{
String[] inputvalues = new String[]{};
inputvalues = filelines[i].split(',');
String SalesforceAccountNumber = inputvalues[2];
Acc_Bulider = inputvalues[3];
if(Acc_Bulider != 'Builder Unknown')
{
Account a = new Account();
a.Name = inputvalues[3];
acctNames.add(a.Name);
accstoupload.add(a);
}
}
We can use toUpperCase() ?
a.Name = inputvalues[3].toUpperCasee();
All Answers
Youc an use this method:
string newupperstring = myString1.toUpperCase();
hit kudos and mark this as answer if it helps you out
We can use toUpperCase() ?
a.Name = inputvalues[3].toUpperCasee();