Enable duplicate detection
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Before running duplicate detection, enable it for each of the following:
Globally (for all entities in the organization).
For an entity.
For specific operations.
Note
You must enable duplicate detection in all three areas to detect duplicates for an entity and for operations on an entity.
Enable duplicate detection globally
- Use the UpdateRequest message to set the Organization.IsDuplicateDetectionEnabled attribute to true.
Enable duplicate detection for an entity
- Use the UpdateRequest message to set the IsDuplicateDetectionEnabled property to true.
Enable duplicate detection for specific operations
Set the following attributes to true:
Organization.IsDuplicateDetectionEnabledForOnlineCreateUpdate. Create and update records in Microsoft Dynamics 365 by using the Web application or Microsoft Dynamics 365 for Outlook. This attribute enables or disables duplicate detection for records created or updated with the CreateRequest and UpdateRequest messages. However, it does not affect records created or updated with the IOrganizationService.Create and IOrganizationService.Update methods.
Organization.IsDuplicateDetectionEnabledForOfflineSync. Synchronize offline records when Microsoft Dynamics 365 for Outlook goes from offline to online.
Organization.IsDuplicateDetectionEnabledForImport. Import bulk data.
Note
You do not have to publish the duplicate detection rules to enable duplicate detection for these operations. However, you must publish the duplicate detection rules before you perform the operations.
See Also
Run duplicate detection
Detect duplicate data
Enabling Duplicate Detection
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright