You need to sign in to do that
Don't have an account?
tulasi ram 1
how to query a lead based on Phone Number
1. What is the best way to find Lead record based on Phone number.
2. I have a phone number, Based on phone number i need to search a record in salesforce(I dont know which object it is). After that if that record belongs to
a. Contact it enters into first if loop
b. Lead it enters into second if loop
c. Account it enters into third if loop
What is the best way to achieve this. Please suggest me a solution.
2. I have a phone number, Based on phone number i need to search a record in salesforce(I dont know which object it is). After that if that record belongs to
a. Contact it enters into first if loop
b. Lead it enters into second if loop
c. Account it enters into third if loop
What is the best way to achieve this. Please suggest me a solution.
Mark as best answer, If it resloves !!
you need to SOSL for these trigger requirement, or check in anynomus block in developer console
Mark as resloved if it helps :) :)
Thanks,
Bhanu Prakash
visit ForceLearn.com (https://www.forcelearn.com)
You can try this code snipet, and let me know if it works for you !! Good Luck !!
Thanks
Niraj
Try This code.
If you found this answer helpful then please mark it as best answer so it can help others.
Thanks
Akshay