AnsweredAssumed Answered

duplicate check on email for leads after clicking find duplicates

Question asked by kirigala on Oct 23, 2015
Latest reply on May 11, 2016 by Piotr Pryzmont
Hi , I have been trying to add email address to duplicate check for leads but it is not working.....
I tried all possible combinations but nothing works.I created a php in vardefs in the Extension folder in custom and I understand that after repair it will group it in the cache in the file Leadvardefs.php. Everything seems fine, it even works when I hardcode the value of the email address but it doesn't work when i add "$email1" or "$email" or "$email[0]['email_address']" etc
here is what I tried: 
'duplicate_check' => 
array (
'enabled' => true,
'FilterDuplicateCheck' => 
array (
'filter_template' => 
array (
0 => 
array (
'$or' => 
array (
0 => 
array (
'phone_home' => 
array (
'$equals' => '$phone_home',
),
),
1 => 
array (
'email1' => 
array (
'$equals' => '$email1',
),

),

),
),
),


Please help!

Outcomes