Plaza 365
Plaza 365

No results found for your search

RegisterLog in

1

Visit article

#codeupdate

#duplicatedetection

#exception

#out-of-the-boxrule

#parameter

Dynamics 365 Customer Service

Category

Nov 9, 2023

Published date

Text

Article Type


AI Summary

  • The article discusses the use of the SuppressDuplicateDetection optional parameter in Microsoft Dynamics 365 to control the behavior of duplicate detection rules.
  • The author mentions a specific out-of-the-box duplicate detection rule that checks for leads with the same email address.
  • The article includes code examples showing how lead records with the same email address are created without any exception when the SuppressDuplicateDetection parameter is not used.
  • The article also demonstrates the updated code that includes the SuppressDuplicateDetection parameter set to false, resulting in an exception being thrown when a duplicate record is detected.
  • The exception message displayed is "The record was not created or updated because a duplicate of the current record already exists."
  • The article concludes by stating that using the SuppressDuplicateDetection parameter allows for the configuration of duplicate detection rules to run and throw exceptions when creating or updating records.
  • The article provides social media sharing options for readers to disseminate the content.
  • The article includes advertisements.

Registered users can view the full text for FREE!

Sign In Now!