If I'm not wrong, you want to display list of Lead Emails which are duplicates in Lead records. Please below VF Page and Controller Which dipslays Lead Emails and their count used in Lead records.
You mean to say that all duplicate Lead records to be displayed in the VF or one record for each duplicate email ? "If there r 3 duplicate leads on same email, u show it only once in the table" - Which Lead record to be displayed ? For Example., there are 4 leads Lead1, Lead2, Lead3, Lead4 with same email., then which lead should be displayed in the VF.., all the four or any particular criteria like last created lead .?
if mail id is 3 times then display any one of lead rem dont displya and if mail id is 2 times then display both leads only maild is greater than or equal 3 times then only display any one of lead other wise display all duplicate leads based on email
VF Page:
Controller:
Let me know if that works for you.
All Answers
May I request you to please refer the below link for reference.
- https://salesforce.stackexchange.com/questions/55102/how-to-remove-duplicate-leads-already-present-in-salesforce
Hope it will be helpful.Regards
Rahul Kumar
Can you share your code here?
Thanks,
Lokesh
If I'm not wrong, you want to display list of Lead Emails which are duplicates in Lead records. Please below VF Page and Controller Which dipslays Lead Emails and their count used in Lead records.
VF Page:
Controller:
You can keep conditions to display if there are 3 duplicate leads with same email like below:
Controller:
Let us know if that helps you.
Best Regards,
BALAJI
"If there r 3 duplicate leads on same email, u show it only once in the table" - Which Lead record to be displayed ?
For Example., there are 4 leads Lead1, Lead2, Lead3, Lead4 with same email., then which lead should be displayed in the VF.., all the four or any particular criteria like last created lead .?
2)when i click the butten BasedOnEmail (If there r 3 duplicate leads on same email, u show it only once in the table )
That is my exact scenario how can it possible,
VF Page:
Controller:
Let me know if that works for you.
Put next and prev buttons, next should show duplicate leads frm 26 to 50.. and so on
Same for prev how can add this to above program
http://blog.jeffdouglas.com/2009/07/14/visualforce-page-with-pagination/
https://www.minddigital.com/how-to-create-pagination-within-salesforce/
https://hisrinu.wordpress.com/2012/01/09/pagination-using-standardsetcontroller/