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 CRM (Archived)

Duplicate Detection Rules for multiple fields with AND / OR

(0) ShareShare
ReportReport
Posted on by

Hi Guys,

I have a situation, when I create Duplicate Detection Rule for Account Entity. I defined it for multiple fields.

Account Name - Exact

ZIP - Exact

City - Exact

Country - Exact

but when I test to add "similar" Company (ex, different Name, same ZIP, same City) it doesn't detect the duplication possibility.

my question is, how this Detection works, is it detects using "AND" or "OR"?

is it possible to use LIKE "%%" and not the EXACT?

Is it possible to create a Duplicate Detection Rule in CRM that compares multiple fields? 

i want to write some condition like

user will get a warning when user filled

"similar" Account Name OR ("exact" city AND "exact" ZIP AND "exact" Country) then Warn the user for the duplicate possibility.

I see that it is possible to set up multiple fields in the duplicate rule, but not clear if they are related by AND or by OR, can anyone explain it to me?

Regards,

Rico

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Rajkumar Rajaraman Profile Picture
    on at

    Hi Rico,

    Refer the following blog:

    crmadminassist.com/duplicate-detection-rules-matching-fields

    Hope this helps.

    Regards,

    R.Rajkumar

    "Please mark my answer as verified if you found it helpful"

  • Verified answer
    Jharana Baliyar Singh Profile Picture
    2,667 on at
  • Verified answer
    Mahendar Pal Profile Picture
    45,095 on at

    Hi,

    Duplicate detection conditions are applied using AND operator.

    Suggested references: msdn.microsoft.com/.../gg309427.aspx

    blogs.msdn.com/.../duplicate-detection-rules-defined.aspx

    Thanks

  • Community Member Profile Picture
    on at

    Hi Rajkumar,

    thanks for your reply, really appreciate it. another good solution.

    Regards,

    Rico

  • Community Member Profile Picture
    on at

    Hi Jharana,

    thanks for your reply, it answered then. it says the rule use "AND" operator.

    Regards,

    Rico

  • Community Member Profile Picture
    on at

    Hi HIMBAP,

    thanks for your reply, i already read those links and find some useful information.

    Regards,

    Rico

  • Suggested answer
    Aarti Parpiyani Profile Picture
    20 on at

    You can also create two duplicate detection rules for the query-

    "similar" Account Name OR ("exact" city AND "exact" ZIP AND "exact" Country)

    1. "similar" Account Name

    2. ("exact" city AND "exact" ZIP AND "exact" Country)

    If there are multiple duplicate detection rules for one entity then conditions from each rule are linked with other rule by OR.

    Duplicate records are records which satisfies at least one of the rules.

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 CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans