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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Add extra specific conditions for Duplicate Conditions

(0) ShareShare
ReportReport
Posted on by

Greetings Microsoft Community,

I am trying to implement a duplication detection rule for imported list on Dynamics 365. We have an importing process on a daily basis, and the rules were simply created following the steps found here: https://docs.microsoft.com/en-us/power-platform/admin/set-up-duplicate-detection-rules-keep-data-clean

This was pretty straight forward and intuitive, working like a charm; however, our challenge is far greater. In order to provide specifics, please consider the following scenario:

  • Duplication detection Rule: Business Phone (Leads Entity). - Exact match
  • Specific condition we're trying to achieve: apply this rule ONLY to records with specific Lead Source (Cold Call). for other lead sources, ignore this rule.

How can we achieve this? because we got another rule coming up for duplicate email addresses with a different Lead Source.

To my understanding, so far this can't be achieved?  I just need a clarification if we cannot do this, otherwise I would require some pointers for this.

thank you in advance,

Avo

I have the same question (0)
  • Suggested answer
    LeoAlt Profile Picture
    16,331 Moderator on at

    Hi partner,

    As I know, the OOB duplication detection rules don't support trigger conditions. 

    So we could try to use plug-in to do this, please refer to the following thoughts.

    1.Deactive the duplication detection  rules on Leads.

    2.Create a plug-in at the pre-creating of Lead records.

    3.In plug-in, we could set the conditions to when new record  "Lead Source  == Cold Call", then run duplication detection  rules  in two ways:

    a).Using web api to trigger rules.

    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/manage-duplicate-detection-create-update

    b).Using "QueryExpression" or "FetchExpression" to get the number of lead records with the same business phone of the new record, and if the number !=0, then throw an error window or update the existing record.

    pastedimage1584498455606v1.png

    pastedimage1584498465398v2.png

    There are also some similar threads for your reference.

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/280217/duplicate-records-detection-from-plugin/800491

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/252658/duplicate-detection-plugin/705481

    Best Regards,

    Leo

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
11manish Profile Picture

11manish 126

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 77 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 54

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans