You need to sign in to do that
Don't have an account?
shakila G
How to find a last 10 digit number from the mobile field in Apex class?
Hi All,
I have different mobile filed in lead and Account as well contact. The mobile field may contains start with zero or without Zero. So i want to find only last 10 digits in Apex class. So that I can compare the last 10 digit number with the input values.
LstAct=[SELECT Owner.Email FROM Account where (Phone=:Mobile_No or Mobile__c=:Mobile_No OR Mobile1__c=:Mobile_No OR Mobile2__c=:Mobile_No OR Phone_Additional__c =:Mobile_No)];
Kindly give me the suggestion to solve this issue
Thanks,
Shakila
I have different mobile filed in lead and Account as well contact. The mobile field may contains start with zero or without Zero. So i want to find only last 10 digits in Apex class. So that I can compare the last 10 digit number with the input values.
LstAct=[SELECT Owner.Email FROM Account where (Phone=:Mobile_No or Mobile__c=:Mobile_No OR Mobile1__c=:Mobile_No OR Mobile2__c=:Mobile_No OR Phone_Additional__c =:Mobile_No)];
Kindly give me the suggestion to solve this issue
Thanks,
Shakila
You can try something like below
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
Best Regards
Sandhya