In our system, we are assigning a unique FullName which is made up of characters from the LastName, the Address, FirstName, and ZipCode. So, a new lead might be assinged the FullName of SENICK14740JIM2484J. A duplicate lead (of which we acquire many) would have a FullName of SENICK14740JIM2484J(2).
I have a new screen with a new default grid filter to show only those leads ending in ')', that are IsLeadStatusOnly, and have any LeadStatus other than Qualified.
For the new delete duplicate leads button, I am looping through only those grid records that are selected.
For these leads there would only be one activity. I have the actions to loop through and delete these. But I am wondering from which table(s) do I delete the actual lead records?
I have checked the QB Audit Trail after manually deleting a lead and see "For table 'accCustomer' the record xxxxx was deleted" and "For table 'accEntity' the record xxxxx was deleted". Both record numbers are the same and the Table Names listed are Entity and ENTITY respectively. I expected to see the Customer and / or Contacts table instead. Anyway, should I be deleting from Entity and Contacts?
- James