<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Contacts should have (Type = Lead | Customer)<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">When conversion happens change the Type.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Wouldn't this suffice?<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><div class="gmail_default">Is there a reason to have a Leads module? </div><div class="gmail_default"><br></div><div class="gmail_default">Regards,</div><div class="gmail_default">Prasad</div></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 8, 2022 at 2:01 AM Rubén A. Estrada Orozco <<a href="mailto:rulotec1@gmail.com">rulotec1@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks for the feedback guys!<div><br></div><div>I was hoping there was a straightforward way (via IDs) to achieve that. As Alan pointed out, I think it could be easily achieved adding a column to the accounts/contacts table to store the leadid, once it is converted, using an eventhandler. If the Vtiger Team thinks this could be pulled, I can submit a MR.</div><div>For the already existing records I will stick to a non-perfect method just using the email.</div><div><br></div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 4, 2022 at 6:11 AM Alan Lord <<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Nope it was my old colleague who added the event 6 years ago so that <br>
would have been around vtiger 6.5 or so...:<br>
<br>
<a href="https://code.vtiger.com/vtiger/vtigercrm/merge_requests/32" rel="noreferrer" target="_blank">https://code.vtiger.com/vtiger/vtigercrm/merge_requests/32</a><br>
<br>
Al<br>
<br>
On 04/01/2022 11:59, Alan Lord wrote:<br>
> On 04/01/2022 11:50, Angelo Paglialonga wrote:<br>
>> Hi Ruben , I think you could make  a sql query joining Leads and <br>
>> accounts  with same email and Converted flag set to 1.<br>
> <br>
> You would have to include modtracker to make sure you get the fields' <br>
> value at the right moment in time - in case the field value has changed <br>
> since.<br>
> <br>
>> @alan if you have a suggestion you could propose a merge request what <br>
>> do you think?<br>
> <br>
> It would be easier now as I think I encouraged vtiger to add a lead <br>
> conversion event. Yes, 4 years ago:<br>
> <br>
> <a href="https://code.vtiger.com/vtiger/vtigercrm/commit/f9125c7eac5f1b505dc216dd68dd012cd265b6e1" rel="noreferrer" target="_blank">https://code.vtiger.com/vtiger/vtigercrm/commit/f9125c7eac5f1b505dc216dd68dd012cd265b6e1</a> <br>
> <br>
> <br>
> An event handler would probably be all that is needed plus a column to <br>
> record the old lead id somewhere.<br>
> <br>
> Al<br>
> <br>
> _______________________________________________<br>
> <a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>