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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

How to block duplicate records based on a customized field?

(0) ShareShare
ReportReport
Posted on by 60

Hi Guys,

Someone knows how to block creating new accounts based on a customized field that I have created? For example, tax customer number that needs to be unique and not allow user to insert new register if find this condition.

Sincerely,

Murilo

I have the same question (0)
  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    You can use duplicate detection rule but it will just display warning and user can still save it.

    Next option is to implement it using Plugin which will not allow user to save record if there is duplicate records exists.

    Here is the example of similar plugin you can do changes based on your requirements: mylearnings26.wordpress.com/.../

  • Suggested answer
    LuHao Profile Picture
    40,892 on at

    Hi Murilo,

    In D365 CE, there are two ways to prevent users from creating duplicate records, duplicate detection rule and alternate key.

    1. duplicate detection rule

    Please refer to the steps in https://rocketcrm.co.uk/dynamics-365-duplicate-detection-rules/

    Set the rule as follow.

    pastedimage1603347126800v1.png

    After publishing it, when users create or edit an Account that tax customer number field value is duplicate, as long as they click Save button, they will see the "Duplicate records found" pop up to remind the users that the field value of this record is duplicated.

    pastedimage1603347296512v2.png

    If the user click "Ignore and save" button, the record will be saved. Therefore, the duplicate detection rule can remind users of duplicate record, but users can still save it. This is not mandatory to prevent users from creating duplicate records.

    2. alternate key

    With alternate key, we can forcibly prevent users from creating duplicate records.

    Please refer to the steps in https://powerobjects.com/2015/08/21/utilizing-alternate-keys-in-dynamics-crm-integrations/

    Note that the prerequisite for the success of alternate key activation is that there is no duplicate value of the selected field. In this case, we need to make sure that there are no accounts with duplicate values in the tax customer number field before creating alternate key.

    Set the alternate key as follow.

    pastedimage1603348413705v3.png

    After it is active, when users create or edit an Account that tax customer number field value is duplicate, as long as they click Save button, they will see an error to mandatory prevent users from saving this record.

    pastedimage1603348891498v4.png

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 170 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 70

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans