# Match Rules on Pipedrive

> Create and configure match rules on Pipedrive: what a rule holds, its limits, how to turn it on, how to change a rule that is on, and how to follow its scan.

A match rule is a named set of field comparisons that describe one kind of duplicate. Dedupify scores pairs of people against each rule that is on, and a pair that clears the rule's review threshold goes to the review queue. Thresholds are covered in [Review Thresholds and Auto-Merge](../auto-merge/).

Dedupify's screens on Pipedrive call properties **fields**. These pages say property.

## What a rule holds

* **Name**: the label Dedupify lists the rule under.
* **Object**: the kind of record it compares. A rule never compares different objects.
* **On or off**: a rule that is off runs no scans and finds no matches.
* **Field rules**: the properties it compares, and how it compares each.

A rule works on people or organizations.

### Field rules

A field rule pairs a property with a **recipe**: the comparison Dedupify uses for that kind of value, such as an email address or a company name. Dedupify picks the recipe from the property's type. [Match Recipes](../properties/) lists every recipe and its options.

Each field answers three questions, and a sentence under the field's name sums up the answers as you change them: what counts as the same, what happens when the values differ, and what happens when one record is blank. [Blank values and conflicts](#blank-values-and-conflicts) covers the last two.

**New rule** lists the properties Dedupify matches on by default for the object, each with its recipe. Tick the ones you want, and change a field's options in the field's card below the list. A rule's card offers **Edit fields** (**Add field** while it has none), **Edit thresholds**, **Turn on** and **Turn off**. In the field editor, **Add field** lists the other properties of the object, up to 5 fields in all. Only an admin can create or change rules.

A rule that is off saves its fields with **Save fields**. **Discard** drops the edits, and **Close** leaves the editor and drops any that are unsaved. Saving fields on a rule that is on re-checks its pairs: see [Change a rule that is on](#change-a-rule-that-is-on).

To create a rule, turn it on and follow its first scan, step through it:

**Create a match rule**

1. **Open Match rules** Go to Tools and apps, Installed apps, Dedupify, Settings and select Match rules.
2. **Start a new rule** Select New rule, then choose People as the object the rule checks.
3. **Name it and pick a field** Name the rule, then tick up to five of the fields Dedupify suggests for the object. Records that match on them become possible duplicates.
4. **Tick more fields and check each card** A ticked field opens a card below the list, with a sentence that sums up how it is compared. What counts as the same lists the field's options, When the values differ offers a veto, and When one record is blank is Skip this field or Rule out the match. Remove drops the field, and Add field adds another field that has a recipe.
5. **Save the rule** Create rule saves it turned off, set to review only.
6. **Turn it on** Turning the rule on queues its first scan of your people. The rule shows On straight away, but it can take a moment for the scan to show up on Scan status.
7. **Watch the scan** Scan status shows Starting for up to 2 minutes while the scan waits for a worker, then Scanning, with a count of the records indexed so far. Scanning takes a few minutes to tens of minutes, depending on how many records you have, and it runs in the background, so you can leave the page; here it is sped up to follow it in steps of ten seconds. When it shows Complete, with the number of pairs it found, they are in the review queue.

### Why a name alone is risky

See why a name alone fails:

**Why name-only rules are risky**

1. **See the lookalikes** Two people can have the same name at the same company.
2. **Spot the risk** A rule on names and company alone flags both as duplicates, and it can only send pairs to review.
3. **Add an identifier** A differing email or phone number lowers the pair's score, so it can drop below your review threshold. Veto on conflict rules the pair out.

A rule on names alone flags every pair that shares them and can never auto-merge. Add an email or a phone number.

### Blank values and conflicts

* **When one record is blank**: **Skip this field** (default) leaves it out of the score, and the pair can still match. **Rule out the match** means a record with no value there can never match under this rule, including for review.
* **When the values differ**: **A different email rules the pair out**, with the field's own name in place of "email". Off by default, it rules a pair out when both records have a value and the values differ, even if every other field matches. It ignores blanks and applies only when the property is compared exactly: while the match style is fuzzy, the card says **Veto on conflict requires Exact match style**. A rule on an external ID always has it on.

See a blank phone value:

**Blank values**

1. **Find the gap** Records are often missing a phone number or an email.
2. **Skip the property** The default. The blank property is left out and the pair is scored on the values both records have.
3. **Or rule the pair out** Where a rule offers it, a record with no value in the property never matches under that rule, even for review.

See a veto on conflict:

**Required matches and veto on conflict**

1. **Spot the conflict** Two records can agree on a name and a company and still differ on a phone number.
2. **Veto on conflict** A property compared exactly can rule a pair out when both records have a value and the values differ.
3. **Require a value** Blank values set to Rule out the match keeps a record with no value in the property from matching at all.

You change both on the field's card. The guides show the same choices made in HubSpot's rule editor.

See what makes a rule strong:

**What makes a strong rule**

1. **Know what adds up** A rule scores from 0 to 100 on a strong identifier, several properties, a property that can rule a pair out, and a safe auto-merge setting.
2. **Compare two rules** A rule on a name and a company is Weak. A rule with an email or phone, more properties and a required value is Strong.
3. **Meet the auto-merge bar** Strength is a guide. To auto-merge, a rule needs a strong identifier, and each pair needs one that matches exactly.

## Limits

| Constraint | Limit |
|---|---|
| Field rules in one rule | 5 |
| The same property twice in one enabled rule | Not allowed |
| Rules turned on at once | Set by your plan; see [Plans and billing](../billing/) |

A rule that is off doesn't count toward the plan limit, so you can keep drafts.

## Several rules on one object

Each rule is scored on its own against its own thresholds, and a pair is surfaced when it clears any rule that is on. Use one rule per kind of duplicate: one on email, another on phone plus company name. Two rules may use the same properties.

## Turn a rule on

A new rule is off, so nothing changes until you turn it on. It turns on only for an object that is activated for Dedupify, on a started plan or free trial. [Plans and billing](../billing/) covers what activation costs.

1. On the rule, select **Turn on**.
2. If the rule says it **isn't activated for Dedupify yet**, select **Activate ... to turn this on**.
3. Check the record count and the charge Dedupify shows, then select **Activate ... and turn this on**. The object activates, the rule turns on and a scan starts.

Without a started plan, Dedupify asks you to start one first.

Turning a rule off stops its scans and dismisses its pending matches from the review queue. Dedupify shows how many before you confirm.

## Change a rule that is on

A rule that is on stays on while you change its fields. Select **Edit fields**, make the change, and select **Save changes**: a confirmation opens first, with **Save changes** and **Keep editing**. The confirmation says:

* Dedupify re-checks the rule's pairs in the background.
* The pairs waiting for review, with their number, stay until the re-check replaces them.
* With auto-merge on, auto-merge for this rule waits until the re-check finishes.
* A re-check that is already running or paused starts over from the beginning.
* Merged records stay merged.

Pairs you already reviewed or dismissed stay as they are, and other rules keep auto-merging.

The re-check is a scan of the rule, so it counts against API limits like one: see [How Scanning Works](../scanning/). Until it finishes, the pairs in your queue were found under the old fields, and auto-merge is not acting on them. After the save, the card says **Saved. Dedupify is re-checking this rule's pairs.**, and with auto-merge on, **Auto-merge for this rule waits until it finishes.**

If the re-check fails, the rule shows the error and **Retry scan** in **Scan status**. If an admin cancelled it, **Start a new scan** runs it again. Auto-merge for the rule keeps waiting until a scan of it completes: see [How auto-merge runs](../auto-merge/#how-auto-merge-runs).

Thresholds are separate: **Save thresholds** on a rule that is on changes them at once and starts no re-check.

### Try a change on your pending pairs

While you edit a rule that is on, **Try it on your pending pairs** shows how a sample of its waiting pairs would score with your change, before you save. It covers changes to a field's options and blank handling. When you add a field, remove one or change a field's comparison, there is nothing to sample until you undo that. Dedupify reads the sampled records from Pipedrive as it does for a review, saves nothing, and shows the values only on the screen. A rule with no waiting pairs shows **No pairs to sample yet.**

Samples spend from a share of your daily API limit. When the share is used, the panel says **Samples are rate-limited for your account, so this one was held back. Try again shortly.**

### If a change can't be saved

Dedupify refuses these before it writes anything, so a refusal changes nothing and your edits stay in the editor:

* **Your plan doesn't allow re-checking pairs right now, so the change wasn't saved.** Check [Plans and billing](../billing/).
* **Scans aren't available for your CRM yet, so changes to this rule's fields can't be saved until they are.**
* **A rule with auto-merge on needs a field that identifies a record**, such as an email. A change that removes the last one is refused. The message ends **To save this change, turn auto-merge off in Edit thresholds first, then make the change again. Closing the field editor discards it.**

If Pipedrive doesn't answer clearly, Dedupify reloads the rule and says **The change may not have been saved, so the rule was reloaded.** Its fields show which happened.

## Scan status

Turning a rule on starts a scan of every record of its object. See [How Scanning Works](../scanning/).

**Scan status** shows each rule's scan progress and history, with **Retry scan** after a failure and **Start a new scan** after a cancellation.

Source page: https://artifactapps.com/docs/dedupify/pipedrive/rules/
