You need to sign in to do that
Don't have an account?
Sudhir Narayanswamy
Split String
Hi,
I have a requirement where user will pass APG-374-NN223-F1 I need to split the string each after - and assign this to a variable to inset into a different custom field Please suggest me how to implement this feature using apex.
Thanks
Sudhir
I have a requirement where user will pass APG-374-NN223-F1 I need to split the string each after - and assign this to a variable to inset into a different custom field Please suggest me how to implement this feature using apex.
Thanks
Sudhir
String yourValue='APG-374-NN223-F1';
String[] splittedArray = yourValue.split('-');
for(String eachSplittedValue : splittedArray ){
// set your field here.
}
Regards,
Pawan Kumar