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 :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Duplicate detection rules on two fields

(0) ShareShare
ReportReport
Posted on by 130

Hi - I want to create duplicate detection rules on two fields e.g. Street and Postcode. It should prompt a message to user and user should have an option to abort creation or to continue it.

any idea ? Thanks

I have the same question (0)
  • Suggested answer
    Charles Abi Khirs Profile Picture
    3,569 on at

    Hello,

    Refer to the following links:

    docs.microsoft.com/.../set-up-duplicate-detection-rules-keep-data-clean

    www.advantage.co.uk/.../

  • Suggested answer
    Naveen Ganeshe Profile Picture
    3,397 User Group Leader on at

    Hi there!

    You can create a duplicate detection rule similar to the existing rule i.e. "Contacts with the same first name and last name". Please see the below screenshot:

    3683.pastedimage1581343349385v1.png

    Now if you create the record with the same parameters then it will prompt you to either save or cancel. 

    1581.pastedimage1581343454056v2.png

    Hope, It will be helpful

  • ilyasmo Profile Picture
    130 on at

    Thanks Charles Abi

    I want duplicate detection rule on both fields but it's not working

    e.g.

    Contact 1 - Street Name: abc d

                   - PostCode: WC1X 8HR

    Contact 2- Street Name: xyz

                   - PostCode: WC1X 8HR

    It should triger duplicate warning as both contacts have got same PostCode

  • ilyasmo Profile Picture
    130 on at

    Thanks Naveen,

    What if first name is Benno but last name is abcd.

    Would that still triger the warning ?

  • ilyasmo Profile Picture
    130 on at

    Also it seems to be ignoring the spaces

    e.g.

    WC1X 8HR

    WC1X8HR

    it should trigger duplicate warning but it doesn't

  • LuHao Profile Picture
    40,892 on at

    Hi partner,

    You need to create two duplicate detection rules for this, one for Street Name and one for PostCode.

    In this case, as long as there is a duplicate of the Street Name or PostCode, the warning will pop up.

    2388.pastedimage1581344430352v1.png

    5468.pastedimage1581344465211v2.png

  • Suggested answer
    Charles Abi Khirs Profile Picture
    3,569 on at

    Hello,

    In this case, you have to create 2 duplicate detection rules, because if you add more than one field in the same Rule, it will consider it as AND and there is no possibility to have OR unless you create 2 different rules and in each of the rule will have the needed field.

  • ilyasmo Profile Picture
    130 on at

    Thanks make sense. how can I sort out space issue in duplicate detection

    For example

    WC1X 8HR

    WC1X8HR

    it should trigger duplicate warning but it doesn't

  • Suggested answer
    Charles Abi Khirs Profile Picture
    3,569 on at

    In fact it is not possible to do it as per your need.

    All you can do is to define the duplicated record in one of the below options:

    Exact Match, First X characters, Last X characters.

    While, ignore blank value check box is not intended for this purpose, it is for the null values of the field to avoid highligthing two records with empty field as duplicated records.

  • LuHao Profile Picture
    40,892 on at

    Hi partner,

    There is currently no way to detect spaces. So this requirement is impossible to achieve.

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 > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans