function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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