You need to sign in to do that
Don't have an account?
Shivani Bankar
how to check is input contact name is string or not?
hello,
i want to check contact name which is inserted is string or not using apex
i want to check contact name which is inserted is string or not using apex
You can use
isAlpha()
isAlphanumeric()
isNumeric() methods
refer below link.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_string.htm
https://salesforce.stackexchange.com/questions/43778/check-if-an-input-is-numeric-or-not
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
Best Regards
Sandhya
All Answers
You can use
isAlpha()
isAlphanumeric()
isNumeric() methods
refer below link.
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_string.htm
https://salesforce.stackexchange.com/questions/43778/check-if-an-input-is-numeric-or-not
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
Best Regards
Sandhya
Thanks it works for me