locked
Prevent duplicates RRS feed

  • Question

  • Hi

    We have a problem with a users ignoring the list of duplicates in the duplicate detection window which pops up when a user enters the name of Lead with the same name as an existing Lead.

    We would like to prevent users from creating duplicates by possibly removing the save button. If this cannot be done then we would like to send an email automatically to the sales manager each time that a potential duplciate is created.

    From what I can tell neither of these requirements are available OOTB. Does anyone have any suggestions?

    Thanks
    Tony

    Friday, February 26, 2010 8:40 AM

Answers

  • Hi Tony, all you need to do is run a Duplicate Detection Job based on a Duplicate Detection Rule you have created. This is all standard functionality from the Settings > Data Management area and discussed in the Microsoft Dynamics CRM 4.0 User's Guide (page 42) if you need help.

    Unfortunately, the contents of the View Duplicates window can't be exported or printed, but it is a useful window for you, your users or their managers to spot and resolve duplicates.

    One of my customers has a similar issue and decided that it was better to turn off the duplicate warnings (because users just ignored the warning anyway) and they had assistants in each area trained as a CRM super user responsible for data quality and resolving duplicates.
    • Marked as answer by Jim Glass Jr Friday, February 26, 2010 9:26 PM
    Friday, February 26, 2010 1:54 PM
    Moderator
  • One option would be an Excel or SRS report which the sales manager could review which shows duplicates and their creators.

    Leon Tribe

    Want to hear me talk about all things CRM? Check out my blog

    http://leontribe.blogspot.com/

    or hear me tweet @leontribe
    Want to hear me talk about all things CRM? Check out my blog http://leontribe.blogspot.com/ or hear me tweet @leontribe
    • Proposed as answer by Leon TribeMVP Friday, February 26, 2010 10:35 AM
    • Marked as answer by Jim Glass Jr Friday, February 26, 2010 9:26 PM
    Friday, February 26, 2010 10:35 AM

All replies

  • Hi, Tony.

    You can create Pre-Create plugin which will check if the record is duplicate and if yes - just throw new exception like:

    throw new Exception("This record is duplicate");

    This approach definitely would prevent of creation of duplicates.
    Truth is opened the prepared mind

    My blog (english)
    Мой блог (русскоязычный)free countersLocations of visitors to this page
    Friday, February 26, 2010 8:52 AM
    Moderator
  • Hi

    Thanks for getting back to me. Creating plug-ins is a bit complex for me. Any other suggestions? Workflow rule or possibly Jscript?

    Thanks again
    Tony
    Friday, February 26, 2010 9:02 AM
  • Possible with JavaScript.
    You can create retrievemultiple query to retrieve similar leads and avoid form save. Materials:

    RetrieveMultiple from JavaScript .
    Form save preventing .
    Truth is opened the prepared mind

    My blog (english)
    Мой блог (русскоязычный)free countersLocations of visitors to this page
    Friday, February 26, 2010 9:34 AM
    Moderator
  • One option would be an Excel or SRS report which the sales manager could review which shows duplicates and their creators.

    Leon Tribe

    Want to hear me talk about all things CRM? Check out my blog

    http://leontribe.blogspot.com/

    or hear me tweet @leontribe
    Want to hear me talk about all things CRM? Check out my blog http://leontribe.blogspot.com/ or hear me tweet @leontribe
    • Proposed as answer by Leon TribeMVP Friday, February 26, 2010 10:35 AM
    • Marked as answer by Jim Glass Jr Friday, February 26, 2010 9:26 PM
    Friday, February 26, 2010 10:35 AM
  • Hi

    Your suggestion seems quite interesting. Unfortunately the suggested Jscript is a bit too complex for me. With regards to the Excel or SRS report how would I go about listing all the duplicates.

    My query would have to search for Leads with the same name. This is not very easy to do with an Advanced Find type search. Leads Name equals all Leads in the system?

    Thanks
    Tony
    Friday, February 26, 2010 10:41 AM
  • Hi, Tony.

    If you want to use report for duplicates identification you can use following query as a base for your report:

    Select Distinct
    	fullname
    From FilteredLead l
    Where Exists (Select * From FilteredLead Where leadid != l.leadid and fullname = l.fullname)

    Truth is opened the prepared mind

    My blog (english)
    Мой блог (русскоязычный)free countersLocations of visitors to this page
    Friday, February 26, 2010 11:25 AM
    Moderator
  • Hi Tony, all you need to do is run a Duplicate Detection Job based on a Duplicate Detection Rule you have created. This is all standard functionality from the Settings > Data Management area and discussed in the Microsoft Dynamics CRM 4.0 User's Guide (page 42) if you need help.

    Unfortunately, the contents of the View Duplicates window can't be exported or printed, but it is a useful window for you, your users or their managers to spot and resolve duplicates.

    One of my customers has a similar issue and decided that it was better to turn off the duplicate warnings (because users just ignored the warning anyway) and they had assistants in each area trained as a CRM super user responsible for data quality and resolving duplicates.
    • Marked as answer by Jim Glass Jr Friday, February 26, 2010 9:26 PM
    Friday, February 26, 2010 1:54 PM
    Moderator
  • In reflection, Neil's idea is probably the most elegant as long as the sales manager is happy to run a duplicate job.

    However, for Excel you could have a simple dynamic export which lists the records and a second column with a countif column to count dupes. The manager then filters the column for a count greater than 1.

    Leon Tribe

    Want to hear me talk about all things CRM? Check out my blog

    http://leontribe.blogspot.com/

    or hear me tweet @leontribe
    Want to hear me talk about all things CRM? Check out my blog http://leontribe.blogspot.com/ or hear me tweet @leontribe
    • Proposed as answer by Leon TribeMVP Friday, February 26, 2010 8:56 PM
    Friday, February 26, 2010 8:56 PM