<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to add Email field as duplicate check in Contacts module on Lead Conversion Process?</title><link>https://sugarclub.sugarcrm.com/dev-club/f/questions-answers/2053/how-to-add-email-field-as-duplicate-check-in-contacts-module-on-lead-conversion-process</link><description>Hi Everyone, We had a requirement in Lead Conversion Process in SugarCRM 9.x . We are working on 9.x Sugar Professional Edition. Basically when we convert the Lead on Convert page of Contacts module by default first name and last name will be as default</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to add Email field as duplicate check in Contacts module on Lead Conversion Process?</title><link>https://sugarclub.sugarcrm.com/thread/26551?ContentTypeID=1</link><pubDate>Thu, 19 May 2022 22:05:09 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:a6ceea51-5efa-4dc7-90a6-491e5bd8903a</guid><dc:creator>Francesca Shiekh</dc:creator><description>&lt;p&gt;Why use starts on an email address check?&amp;nbsp;Would one not want to check for an exact match on the email address?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add Email field as duplicate check in Contacts module on Lead Conversion Process?</title><link>https://sugarclub.sugarcrm.com/thread/7509?ContentTypeID=1</link><pubDate>Mon, 16 Mar 2020 07:25:39 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:11766bd7-c227-4f2c-904d-db2bb0993149</guid><dc:creator>Ramya Katram</dc:creator><description>&lt;p&gt;Hi ,&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have implemented this logic in one of our recent project requirements and it worked without any issues in Sugar 9.0.1 Professional edition. I believe you have to include the email parameter inside an array in the code. Can you please try with below snippet of code in the same path and let me know if it works for you or not. Hope it helps for you.&lt;/p&gt;&lt;p style="color:#000000;background-color:#ffffff;border:0px;padding:0px;"&gt;&lt;strong&gt;The path where you have to place the below code - custom/Extension/modules/Contacts/Ext/Vardefs/duplicate_check_email.php&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;?php&lt;br /&gt;$dictionary['Contact']['duplicate_check']['FilterDuplicateCheck']['filter_template'] = array(&lt;br /&gt; array(&lt;br /&gt; array(&lt;br /&gt; &amp;#39;$or&amp;#39; =&amp;gt; array(&lt;br /&gt; array(&lt;br /&gt; &amp;#39;$and&amp;#39; =&amp;gt; array(&lt;br /&gt; array(&lt;br /&gt; &amp;#39;first_name&amp;#39; =&amp;gt; array(&lt;br /&gt; &amp;#39;$starts&amp;#39; =&amp;gt; &amp;#39;$first_name&amp;#39;&lt;br /&gt; )&lt;br /&gt; ) ,&lt;br /&gt; array(&lt;br /&gt; &amp;#39;last_name&amp;#39; =&amp;gt; array(&lt;br /&gt; &amp;#39;$starts&amp;#39; =&amp;gt; &amp;#39;$last_name&amp;#39;&lt;br /&gt; )&lt;br /&gt; ) ,&lt;br /&gt; array(&lt;br /&gt; &amp;#39;accounts.id&amp;#39; =&amp;gt; array(&lt;br /&gt; &amp;#39;$equals&amp;#39; =&amp;gt; &amp;#39;$account_id&amp;#39;&lt;br /&gt; )&lt;br /&gt; ) ,&lt;br /&gt; array(&lt;br /&gt; &amp;#39;dnb_principal_id&amp;#39; =&amp;gt; array(&lt;br /&gt; &amp;#39;$equals&amp;#39; =&amp;gt; &amp;#39;$dnb_principal_id&amp;#39;&lt;br /&gt; )&lt;br /&gt; ) ,&lt;br /&gt; )&lt;br /&gt; ) ,&lt;br /&gt; array(&lt;br /&gt; &amp;#39;email1&amp;#39; =&amp;gt; array(&lt;br /&gt; &amp;#39;$starts&amp;#39; =&amp;gt; &amp;#39;$email1&amp;#39;&lt;br /&gt; )&lt;br /&gt; ) ,&lt;br /&gt; )&lt;/p&gt;&lt;p&gt;) ,&lt;/p&gt;&lt;p&gt;) ,&lt;br /&gt;);&lt;/p&gt;&lt;p&gt;?&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add Email field as duplicate check in Contacts module on Lead Conversion Process?</title><link>https://sugarclub.sugarcrm.com/thread/7508?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 04:53:26 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:fec53014-9fe4-4230-b0ff-af290c00f3a9</guid><dc:creator>Nagamani D</dc:creator><description>&lt;p&gt;Hi Andre Lopes,&lt;/p&gt;&lt;p&gt;Can you please be more specific, do you mean to say the above code is correct and&amp;nbsp; just to replace&amp;nbsp;&lt;span style="color:#000000;background-color:#ffffff;"&gt;array(&amp;#39;email&amp;#39; =&amp;gt; array(&amp;#39;$starts&amp;#39; =&amp;gt; &amp;#39;$email&amp;#39;)), in place of email1 or can you please suggest me what is the error in the above code.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000000;background-color:#ffffff;"&gt;Thanks in Advance.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to add Email field as duplicate check in Contacts module on Lead Conversion Process?</title><link>https://sugarclub.sugarcrm.com/thread/7507?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 01:27:51 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:810996fe-d8f7-429e-92d2-e3040af8a497</guid><dc:creator>Andr&amp;#233; Lopes</dc:creator><description>&lt;p&gt;Try the following construction:&lt;/p&gt;&lt;blockquote class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;span style="color:#000000;background-color:#ffffff;"&gt;array(&amp;#39;email&amp;#39; =&amp;gt; array(&amp;#39;$starts&amp;#39; =&amp;gt; &amp;#39;$email&amp;#39;)),&lt;/span&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="color:#000000;background-color:#ffffff;"&gt;Regards&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>