Disabling Duplicate Detection
[Applies to: Microsoft Dynamics CRM 4.0]
You can disable duplicate detection globally or for an entity type by unpublishing the duplicate detection rules, or by deleting the published rules.
Disable duplicate detection globally
To disable duplicate detection globally, use the Update message to set the organization.isduplicatedetectionenabled property to false. This automatically unpublishes all duplicate detection rules for all entity types in the organization.
Disable duplicate detection for an entity
To disable duplicate detection for an entity type, you can use one of the following methods:
- Use the UpdateEntity message to set the EntityMetadata.DuplicateDetection property to false. This automatically unpublishes all duplicate detection rules for an entity type. This removes duplicate detection support for the entity type and you cannot create a new duplicate detection rule for this entity type.
- Unpublish all duplicate detection rules for an entity type by using the UnpublishDuplicateRule message.
Delete published duplicate detection rules
You can delete all published rules in the system to disable duplicate detection globally, or delete published rules for specific entity types by using the Delete method.
© 2010 Microsoft Corporation. All rights reserved.