Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Sample plugin code to see if there is a matching records based on first name and last name

Posted on by 1,017

Hi,

I am looking for the sample plugin code that will trigger on create of Contact and  check if there are existing records that have the both First name and last name that matches.

If it matches, stop the new record creation.

Any code references is highly appreciated. I am new to the plugins.

Thanks.

  • Suggested answer
    Leco Lv Profile Picture
    Leco Lv on at
    RE: Sample plugin code to see if there is a matching records based on first name and last name

    Hi partner,

    Do you mean you want to force stop creating new records?  if not, Dynamics 365 comes with a duplicate check function. When you try to create two accounts with the same information, the system will automatically prompt duplicates.

    pastedimage1668415840659v1.png

  • Verified answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Sample plugin code to see if there is a matching records based on first name and last name

    Hi,

    Check below blog

    mylearnings26.wordpress.com/.../

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans