You need to sign in to do that
Don't have an account?
Sahil Yadav
Hello Mates needed some help on String Methods
There is dicription field in case obj
where it contains
Customer Name: Smith Ng Customer Email: smith.ng@.com
now my task is basically to get the get the name from yhe description field and populate to some other field in case obj
Just name that is Smith Ng
any suggestions !!!!
where it contains
Customer Name: Smith Ng Customer Email: smith.ng@.com
now my task is basically to get the get the name from yhe description field and populate to some other field in case obj
Just name that is Smith Ng
any suggestions !!!!
String casedesc = caserec.Description; String SuppliedName = casedesc.substringAfter('Name:'); System.debug('@@'+SuppliedName); String sn = SuppliedName.substringBefore(' Custumer Email:'); System.debug('@@'+sn); //caserec.SuppliedName = SuppliedName;
Can you try something like below.
If this solution helps, please mark it as best answer.
Thanks,
All Answers
Can you try something like below.
If this solution helps, please mark it as best answer.
Thanks,