web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Duplicate Detection on Sales Quote/Sales Order Entities

(0) ShareShare
ReportReport
Posted on by

Hi guys,

 

I know that CRM 2011 has some "duplicate detection" features built in.  But it looks like this only works for Contacts and Accounts.  It lets you scan for duplicates on-demand, but furthermore it will warn you if you try to create a duplicate record, popping up a box saying "this record might be a duplicate."

 

We need the ability to extend this functionality to quotes and orders, specifically for the "Customer PO Number" field (a custom text field I created).  To our salespeople, it's not an immediate red flag if a customer places another order with the same products as a previous order, since we do have regular/repeat customers who will order the same parts every so often.

What is a problem, though, is when they mistakenly submit the same order twice - as indicated by their purchase order number.  We've had this happen twice in the past month, and didn't catch it until we were ready to actually fulfill the order and realized something seemed unusual.

It would save everybody a lot of time and effort if CRM could simply warn saying "this PO number is already associated with a different record", even possibly showing that record.

 

Is this something that can be done with some JavaScript on the form?

Being a database designer, my initial thought was to make the "Customer PO Number" field a KEY field, that way SQL Server itself will ensure there are no duplicate values.  But this will probably cause issues in CRM, as it's not designed for that type of situation - I'm thinking strictly of a SQL sense where you're only inputting data through direct queries.

 

Any thoughts, ideas, or suggestions?  Thanks in advance!

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Duplicate Detection on Sales Quote/Sales Order Entities

    That did the trick! Since duplicate detection was already enabled on sales quotes (from the factory, nothing I did manually), all I had to do was create a duplicate detection rule and now it works.

    It's actually not as confusing as I thought, I just didn't know where to start.  Thanks for the info - hopefully if someone else who has no experience with CRM has a similar problem this thread can help them do duplicate detection from scratch.

    PS - I also made a sales order duplicate detection, and had to go to Customizations and enable duplicate detection on the entity before it would let me choose it as a duplicate detection rule.  So that's the proper order of things.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Duplicate Detection on Sales Quote/Sales Order Entities

    yes - the rules are going to tell the system what criteria should match in order to consider 2 records a possible pair of duplicates.  For example, with a Customer record, you might want to specify the first 15 characters of the name and the first 15 characters of the street address to be a match.  If you chose only look at the name being an exact match, you have the potential for having false matches every time you have customers with the same name (which can be frequent if you deal with customers with many locations or divisions and there is a business need to maintain them as separate customer records).  By using a full name exact match criteria, you also have the potential for missing actual duplicates were one person entered a record with words spelled out and another entered it with an abbreviation.

    Here is a link to Microsoft's instructions on creating the duplicate detection rules.  You'll need to determine what rule criteria will work best for your needs and then you can adjust them if you find you are getting too many false matches or not enough real matches.

    www.microsoft.com/.../set-up-duplicate-detection-rules-to-keep-your-data-clean.aspx

  • Community Member Profile Picture
    on at
    RE: Duplicate Detection on Sales Quote/Sales Order Entities

    busybell, is there a guide for doing this? I don't have any Duplicate Detection anything set up at the moment - I need to start from scratch.  Seems to be a bit of a catch-22, I have to have rules created in order to enable it?

  • Verified answer
    Community Member Profile Picture
    on at
    RE: Duplicate Detection on Sales Quote/Sales Order Entities

    In addition to enabling duplicate detection for the entity, you have to have at least one duplicate detection rule published for the entity.  You will find the Duplicate Detection Rules under Data Management in Settings.  Once you configure a rule for the entity and it is published (publishing can take a while), you should have it working on the entity.

  • Community Member Profile Picture
    on at
    RE: Duplicate Detection on Sales Quote/Sales Order Entities

    This has been an issue since I made this post back in July and my supervisor asked me what the status of this was. We had another situation where somebody inserted a duplicate order.  I replied with a screenshot of what I get - any other ideas?

  • Community Member Profile Picture
    on at
    RE: Duplicate Detection on Sales Quote/Sales Order Entities

    Looks like it already is checked, at least under Sales Quote it is. But yet under Duplicate Detection there's no actual option for it, only accounts, contacts and leads.

    That's how it was when I opened it under Customization (Default Solution) - it was already checked.

    Is there something I'm missing here?

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: Duplicate Detection on Sales Quote/Sales Order Entities

    Creating keys is not supported in 2011. 2015 update 1 provides a way to create alternate keys through configuration, which then enforce uniqueness.

    You can configure Quote, Order and pretty much any other entity to support duplicate detection. In a solution containing the entity (could be the default solution), select the entity such as Order, and on the entity definition scroll down to the Data Services section and select the checkbox for "Duplicate detection". Save the entity and publish.

    Now you have enabled the entity you should be able to create duplicate detection rules for it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans