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

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

  • Suggested answer
    LeoAlt Profile Picture
    LeoAlt 16,331 on at
    RE: Add extra specific conditions for Duplicate Conditions

    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans