You need to sign in to do that
Don't have an account?
R R M
Search account based on Current logged in User phone and Account Phone
Hi Friends,
Need Visualforce page with search option account.
Should Use Current loggedin User Phone and Account phone.
if iam trying to search with my account id = 12345.
if Account has phone number (900000001) and
Current Loggedin User Phone number (900000001)
Then
User.phone==account.phone(if user phone and account phone both are same) then Account(12345) should disply on visualforce. except Account(12345) no one other account should not display.
Please do help. this is an urgent thing need to have.
Thanks in Advance.
Need Visualforce page with search option account.
Should Use Current loggedin User Phone and Account phone.
if iam trying to search with my account id = 12345.
if Account has phone number (900000001) and
Current Loggedin User Phone number (900000001)
Then
User.phone==account.phone(if user phone and account phone both are same) then Account(12345) should disply on visualforce. except Account(12345) no one other account should not display.
Please do help. this is an urgent thing need to have.
Thanks in Advance.
Following Visualforce Page and Apex Class code helps you to achieve your requirement.
1. Create new visualforce page and past following code. 2. Create new apex class and past following code.
3. Add phone number in current login user detail level.
4. Create sample account with same phone user phone Number.
5. Preview created visuallforce page and search account by Account Number.
Let us know if it helps you.
Your page and output look like this.
Regards,
Yogesh More
Salesforce consultant || Salesforce Developer
more.yogesh422@gmail.com || yogeshsfdc11@gmail.com
www.yogeshmore.com || Skype:-yogesh.more44
YogRaj,
Is there any possiblity to search with multple unique parameters, like , Name, phone, Email
in Above code we use only account number, in similar way want to use Name, phone, Email.
Please do help.
Check following code. I have used AND in the query where clause, you can use OR also if you want to match fields optionally.
Not Getting Exact records please look below image.
Please do help