You need to sign in to do that
Don't have an account?
Firas Taamallah 18
How to test if Text field contain less than 5 email addresses? APEX
Hello ,
I have text field in Case , i want to test if this field contain less than 5 email addresses - How can i acheieve this?
Thanks,
Firas
I have text field in Case , i want to test if this field contain less than 5 email addresses - How can i acheieve this?
Thanks,
Firas
Hi Firas,
Please find the solution. "How to test if Text field contain less than 5 email addresses? APEX"
one email can contain one @ so 5 emails can contain 5 emails. We can do one thing we can count the number of @ from the string.
Please check the below code
You can also take references from the below link.
https://developer.salesforce.com/forums/?id=9062I000000XnKdQAK
https://salesforce.stackexchange.com/questions/130647/apex-count-the-number-of-letters-in-an-arbitrary-string
Please mark this solution as the Best Answer so that other people can also take references from this here.
Thank You