# Set Up Duplicate Matching Condition

Duplicate matching conditions enable you to define the primary and matching entity fields of records for detecting duplicates based on various matching methods.

For example, to detect duplicates in the **‘First Name’** field of contact entity record, you will have to define a duplicate matching condition for detecting duplicates between the **‘First Name’** fields of contact entity records.

To set up Duplicate Matching Conditions, follow the steps given below:

* Once you have set up the[ **‘Duplicate Matching Rule’,**](https://docs.inogic.com/deduped/configuration/set-up-duplicate-matching-rule) click on the **‘New Duplicate Matching Condition’** button.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FGwd5bPyjy6pmiiuZcYTa%2F1%20Set%20Up%20Duplicate%20Matching%20Condition.png?alt=media&#x26;token=baad8cf3-d113-4059-bc73-eb2a4b5f36a0" alt=""><figcaption></figcaption></figure>

* This will open up a **‘New Duplicate Matching Condition’** quick-create form, where we need to fill in the following details:

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fo7n0XSQgJx4K5jbfwf40%2F2%20Set%20Up%20Duplicate%20Matching%20Condition.png?alt=media&#x26;token=2baae610-56af-46ff-92ed-b7d5e6f5946a" alt=""><figcaption></figcaption></figure>

* **Primary Entity Field:** Select the entity field for which you want to enable duplicate detection. For e.g. Here we will select **‘First Name’.**

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FuhlysPr4IInSMOtUr361%2FConfig_1.png?alt=media&#x26;token=395913f2-2498-411d-966e-ef86f35de729" alt=""><figcaption></figcaption></figure>

* **Matching Entity Field:** Select the matching entity field in which you want to detect duplicates. The fields in the Matching Entity Field dropdown will be of the same data type as the field selected in the Primary Entity Field.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fm1jDzhQxbE3u93X0MecO%2FConfig_2.png?alt=media&#x26;token=8d6b9ffa-103f-4df1-a2d7-0a2cf72aaf9b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FbdpFmbdWeQXgSkBQC4tL%2FConfig_3.png?alt=media&#x26;token=8363445f-f08c-486b-9abf-96f4edd23b8f" alt=""><figcaption></figcaption></figure>

**Find Duplicate in Multiple Fields with a Single Rule**

The Multi-Field Matching enhancement allows users to select multiple fields from a matching entity for a single Primary Entity Field within a Duplicate Matching Condition.\
This improvement streamlines configuration, reduces redundancy, and increases flexibility in detecting duplicates across Dynamics 365 CRM records.

* Current Behavior: Only one field can be selected for comparison
* New Behavior: Multiple fields can now be selected. The system applies an OR logic across the selected fields during duplicate detection

**Steps to Configure Multi-Field Matching:**

1. Navigate to Duplicate Detection Rules in DeDupeD.
2. Open or create a Duplicate Matching Condition for the desired primary entity.
3. In the Matching Entity Field section, click + Add Field.
4. Select one or more fields from the matching entity that should be compared against the Primary Entity Field.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FTguXg66dRdNOXdJA5rOM%2FConfig_5.png?alt=media&#x26;token=7926650c-fe2a-4a95-a8f5-a002333c0963" alt=""><figcaption></figcaption></figure>

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FYhHqmP6iAN4QelF9mHqI%2Fconfig_6.png?alt=media&#x26;token=eb3de8d7-a666-47a0-a94c-19a49b60f7b9" alt=""><figcaption></figcaption></figure>

5. Repeat step 4 if additional fields are needed
6. Review the configuration — the system will automatically apply OR logic across all selected fields.
7. Click Save & Close to apply the changes.

<div data-with-frame="true"><figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FWvCQgPTur5VLG1wTrEyX%2FImage_2.png?alt=media&#x26;token=c33ca754-3391-474d-8558-180e8512ba8b" alt=""><figcaption></figcaption></figure></div>

* **Matching Criteria:** Here you can select a matching method for duplicate detection from five different matching methods:

  * **Exact Matching Method:** With this method, you can detect duplicates with exactly same characters.

    **For example,** if an existing contact record contains first name **‘Smith’** and a new record is also created with first name **‘Smith’,** then by using this method, you can detect duplicate records that contain fields with exactly same characters.

  * **First N Characters Matching Method:** With this method, you can detect duplicates in the record fields based on same first N characters. Additionally, you can also define the number of characters for duplicate detection; let’s say you select **‘3’**.&#x20;

    **For Example,** if an existing contact record’s first name is **‘Smith’** and a new record is also created with the same first name as **‘Smith’,** then by using this method, you can detect duplicate records containing same first **‘3’** characters as the existing record, i.e., **‘Smi’.**

  * **Last N Characters Matching Method:** With this method, you can detect duplicates in record fields based on the same last N characters. Additionally, you can also define the number of characters for duplicate detection; let’s say you select **‘3’.**

    **For Example,** if an existing contact record’s first name is **‘Smith’** and a new record is also created with a first name as **‘Smith’,** then by using this method, you can detect duplicate records containing the same last **‘3’** characters as the existing record, i.e., **‘ith’.**

  * **Contains Matching Method:** With this method, you can detect duplicates based on any character in a primary entity field.

    **For Example,** if an existing contact record's first name is **‘Smith’** and a new record is created with the first name 'Smit', then by using this method, you can detect duplicate records containing the word ‘**Smit’** from the existing record.

  * **Fuzzy Matching Method:** With this method, you can identify duplicates by comparing the phonetic similarity of records, even if they're spelled differently.

    &#x20;

    **For example,** it can detect that **"John Smith"** and **"Jon Smyth**" are likely two contact records for the same person, despite variations in spelling. This method ensures that similar-sounding names or terms are accurately identified and merged, enhancing data accuracy and consistency.
* **Ignore Blank:** You can select whether to ignore blank fields while executing duplicate matching conditions. By default, it is set to **‘Yes’.**

  **For Example,** if you select **‘Ignore Blanks’** as **‘Yes’** and have an existing contact record with a blank **‘First Name’** field and you create a new record with a blank **‘First Name**’ field, then the matching condition will ignore the blank field while duplicate detection, and let you create a new contact record with a blank **‘First Name’** field.

  If you select **‘Ignore Blanks’** as **‘No’** then the matching condition will not ignore the blank field while duplicate detection, and it will not let you create a new contact record with a blank **‘First Name’** field.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F3TrEnnsUNo2NU41u9j4H%2F5%20Set%20Up%20Duplicate%20Matching%20Condition.png?alt=media&#x26;token=5e929ae4-a882-4a45-8897-3350dbe6932a" alt=""><figcaption></figcaption></figure>

* **Number of Characters:** Add your desired Number of characters.
* Once the required fields are filled in, click **‘Save and Close’**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FzhKjvYc0JOt14xfb6veN%2F6%20Set%20Up%20Duplicate%20Matching%20Condition.png?alt=media&#x26;token=6c61adfc-7c29-4542-82e0-e62c18cded06" alt=""><figcaption></figcaption></figure>

* After creating duplicate matching conditio&#x6E;**, ‘Click’** ‘**Publish’** to publish the **‘Duplicate Matching Rule’**.

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fj2QusOuCuZfQ6jRCJN4x%2F7%20Set%20Up%20Duplicate%20Matching%20Condition.png?alt=media&#x26;token=3a68837f-f1c3-418f-bb70-cdbdbbefa24f" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
For further queries, reach out to us at <crm@inogic.com>
{% endhint %}
