Yes, this is possible if you add a custom index on the name field. Note at the bottom of the field mapping page in the Import process there is a "Verify duplicate entries against selected indexes" select field. This is a list of indexes defined for the Accounts module. If the index you wanted existed, it would be in this list. You would select it and during the Import the system would check against the name field for duplicates.
To create the index on the Name field, do the following:
1) create this new file: custom\Extension\modules\Accounts\Ext\Vardefs\cust om.php
2) Add in this code to this file:
PHP Code:
<?php
$dictionary['Account']['indices'][] =
array('name' =>'idx_name_del', 'type'=>'index', 'fields'=>array('name','deleted'));
?>
3) Log in to Sugar as an adminsitrator, go to Admin->Repair->Quick Repair and Rebuild and execute the repair here twice. Note, you do need to run the repair twice so that the new index definition is registered and then actually execute.
You will now see an index called "Name, Deleted" that you can use to check duplicates against while importing.
Bookmarks