+ Start a Discussion
Nicole Young 2Nicole Young 2 

How do i make this return a number value instead of a string? : String leadSize= email.plaintextbody.split('Base: ').get(1).split('Product').get(0);

Best Answer chosen by Nicole Young 2
Varun SinghVarun Singh
Integer leadSize= email.plaintextbody.split('Base: ').get(1).split('Product').get(0).length();

All Answers

Varun SinghVarun Singh
Integer leadSize= email.plaintextbody.split('Base: ').get(1).split('Product').get(0).length();
This was selected as the best answer
Nicole Young 2Nicole Young 2
thanks Varun!
Varun SinghVarun Singh
Your welcome @ Nicole Young 2