LogoLogo
  • Delpha Documentation
    • Welcome to Delpha Documentation
    • Delpha Setup
      • Install Delpha
        • Install Delpha package from the Salesforce App Exchange
        • Activate Delpha
        • Assign a Delpha Permission Set Group
        • Assign a Delpha licence to the users
        • Connect the org to Delpha
      • Import Conversations
      • Extra Tasks
        • Check my org settings
        • Install Delpha Connector for LinkedIn Enrichment
    • Delpha Upgrade
    • Delpha Apps
      • Delpha Setup
        • Delpha configuration
          • First Steps
          • Token Usage
          • Data Quality - Account
          • Data Quality - Contact
          • Duplicates
          • Job Tracker
          • Default Values
        • Conversations
        • Conversation Builder
          • High-level overview of the conversation builder
      • Delpha Data Quality
        • Data Quality Steward view
        • Duplicate Data Steward view
      • Delpha Score Meter
    • Use Cases Setup
      • Duplicate
        • Setup
          • Initialize the default settings
          • Activate Auto Merge
        • Duplicate detection
          • Properties section
          • Fields section
        • Run your first duplicate detection
        • Duplicate remediation
          • Merge Object Rules section
            • Master Record Selection
            • Custom rule for Master Record selection
            • Default rules for field selection
          • Merge Field Rules section
      • Data Quality
  • Delpha Campaigns
    • Create a Delpha Campaign
    • Configure a Delpha Campaign
      • Select the Campaign Type
        • Lead Generation
        • Job Tracking
        • Account Generation
      • Review and update the Settings
      • Add Campaign Members
  • HOW TO - FAQ
    • Quick Start Guide
    • Delpha Integration
      • How to add Delpha components in my standard layout
      • How can I add Delpha fields in my standard layout
      • How to manage conversation priority
      • How to manage the conversation auto opening
    • Delpha Job Tracking
      • How to display the Job History
      • How does job tracking works
    • Delpha LinkedIn Connector
      • How can I connect my LinkedIn Account to Delpha
      • I am not allowed to install Delpha Connector on my browser
      • How many records can be enriched with LinkedIn in a day per user?
      • How can I check if a LinkedIn cookie is properly set or valid
      • How is used my LinkedIn Cookie
      • How can I automate my lead generation
    • Delpha Duplicate
      • What is a Filtering Rule and how to use it
      • What is the Expression and how to use it
      • How to exclude records from the analysis
      • How to make Duplicate Records exclusion dynamic
      • How to Fix Duplicates in Salesforce with Delpha – Automatic, Bulk & Manual Options
      • How to modify the detection threshold
      • How to modify the auto process threshold
      • What algorithms are used by Delpha
      • How does the Duplicate scoring work
      • How to define a Golden Record for Duplicate
      • How do you differentiate Do Not Compare & Is Golden Record
      • How to sync Salesforce & Hubspot to deduplicate records
      • Duplicate detection - When does it happen?
      • How to set the frequency of the Auto Merge
      • How to create a Master selection custom rule
      • How to create a Master selection custom rule - Advanced
      • What are the duplicate status?
      • How to Merge 2 leads with different currencies
      • What is a Duplicate credit?
      • Do I consume a credit when merging a pair?
      • What is field grouping?
      • How can I hide a field from the Delpha Bot conversation?
      • How can I keep both values of a field after the merge
      • Some duplicate are not detected, what can I do?
      • Can I ignore some field values when detecting duplicates?
      • What data is available for Duplicate?
      • How can I create custom reports on Duplicate
    • Delpha Data quality
      • What are the 6 data quality dimensions
      • How to exclude records from the analysis
      • How to fix my data quality
      • What is a Token?
      • Do I consume a token when applying a Delpha recommendation?
      • Data Quality for Contacts
        • What are Data Quality Dimensions for Email
        • What are the Data Quality fields for Email
  • Delpha Campaigns
    • How to add records to a campaign from reports?
  • TROUBLESHOOT
    • Grant access for Delpha Support
Powered by GitBook
On this page
  • How to Define Exclusion Rules for Duplicate Pairs in Delpha
  • What Are Exclusion Rules?
  • How to Define an Exclusion Rule
  • Rule Logic & Conditions
  • Practical Examples (Accounts)
  • Examples in JSON

Was this helpful?

Export as PDF
  1. HOW TO - FAQ
  2. Delpha Duplicate

What is a Filtering Rule and how to use it

Refine duplicate detection in Salesforce by defining exclusion rules in Delpha. Learn how to use field comparisons, operators, and comments to discard false matches.

How to Define Exclusion Rules for Duplicate Pairs in Delpha

After Delpha identifies potential duplicate pairs, you may want to refine, exclude, or annotate some of them using exclusion rules. These rules help automatically filter out certain matches based on field-level comparisons and predefined logic.

What Are Exclusion Rules?

Exclusion rules let you define custom logic to update the status of a duplicate pair and optionally add a comment explaining why the pair should not be considered a valid match.

  • ✅ If a rule is triggered → The pair's status is changed to Auto No, and a comment is added.

  • ❌ If not triggered → No change in status, but a comment may still be added depending on your settings.

How to Define an Exclusion Rule

  1. Select the Field to Compare Choose a field from the object (Account, Contact, etc.).

The field must be defined in the Fields section of the duplicate detection settings.

  1. Choose an Operator Operators (case-sensitive, lowercase) define how the field is evaluated:

  • same: Both field values are equal

  • not same: Field values are different

  • empty: Field is empty for both records

  • not empty: Field is filled in both records

  • equal: Field value equals a specific value

  • not equal: Field value does not equal a specific value

  • greater than, lower than: Compare numerical or date values

  1. Enter Comparison Value (if needed) Only required for: equal, not equal, greater than, lower than No input needed for: same, not same, empty, not empty

  2. Define the Action (Discard Field)

    • discard = true: Pair is marked as Auto No, and the comment is added

    • discard = false: Only the comment is added; status remains unchanged

  3. Add a Comment (Optional) Define a custom message to populate the Comment field when the rule is applied. This helps document the logic behind each exclusion.

Rule Logic & Conditions

  • Within a rule: Conditions use AND logic

  • Across multiple rules: Evaluation uses OR logic

  • Evaluation order: Rules are applied from top to bottom

Practical Examples (Accounts)

Rule
Condition(s)
Action
Comment

1

Not Same RecordType + Equal RecordType = Group

Discard

"group"

2

Not Same RecordType + Equal RecordType = Partnership + Equal RecordType = Entity

Discard

"Partnership vs Entity"

3

Not Same RecordType

Discard

"record type"

4

Not Same City

Discard

(Add comment)

5

Not Same Country

Discard

(Add comment)

6

Not Same NetSuiteId (custom)

Discard

(Add comment)

7

Not Same Account Segment (custom)

Discard

(Add comment)

8

Not Same Account Type (custom)

Discard

(Add comment)


Examples in JSON

[  
# RULE 1
   {
    "name" :  "Rule 1",
    "comment" : "One record type is a Group",
    "discard" : true,
    "rules" : 
    [
     {
      "field":"RecordType",
      "operator":"not same"
     },
# AND
     {
      "field":"RecordType",
      "operator":"equal",
      "value”:"Group"
     }
    ]
   },                    
# OR
# RULE 2
   {
    "name": "Rule 2",
    "comment":"Partnership vs Entity",
    "discard":true,
    "rules" : 
    [
     {
      "field":"RecordType",
      "operator":"not same"
     },
# AND
     {
      "field":"RecordType",
      "operator":"equal",
      "value" : "Partnership"
     },
# AND 
     {
      "field":"RecordType",
      "operator":"equal",
      "value" : "Entity"
     } 
    ]
   },
# OR
# RULE 3
   {
    "name" :  "Rule 3",
    "comment" : "Different RecordType",
    "discard" : true,
    "rules" : 
    [
     {
      "field":"RecordType",
      "operator":"not same"
     }
    ]
  },

# OR
# RULE 4
   {
    "name" :  "Rule 4",
    "comment" : "Different City",
    "discard" : true,
    "rules" : 
    [
     {
      "field":"BillingCity",
      "operator":"not same"
     }
    ]
   },
# OR
# RULE 5
   {
    "name" :  "Rule 5",
    "comment" : "Different Country",
    "discard" : true,
    "rules" : 
    [
     {
      "field":"BillingCountry",
      "operator":"not same"
     }
    ]
   },
# OR
# RULE 6
   {
    "name" :  "Rule 6",
    "comment" : "Different NetSuite Id",
    "discard" : true,
    "rules" : 
    [
     {
      "field":"NetSuiteId__c",
      "operator":"not same"
     }
    ]
   },
# OR
# RULE 7
   {
    "name" :  "Rule 7",
    "comment" : "Different Segment",
    "discard" : true,
    "rules" : 
    [
     {
      "field":"AccountSegment__c",
      "operator":"not same"
     }
    ]
   },
# OR
# RULE 8
   {
    "name" :  "Rule 8",
    "comment" : "Different AccountType",
    "discard" : true,
    "rules" : 
    [
     {
      "field":"AccountType__c",
      "operator":"not same"
     }
    ]
   },
# OR
# RULE 9
   {
    "name" :  "Rule 9",
    "comment" : "French Duplicate",
    "discard" : false,
    "rules" : 
    [
     {
      "field":"BillingCountry",
      "operator":"same"
     },
#AND
     {
      "field":"BillingCountry",
      "operator":"equal",
      "value”:"France"
     }
    ]
   }
]
  • #AND and #OR are here for readability purpose only. They should be removed before applying the JSON.

  • API names must be used in JSON for the field tag.

PreviousDelpha DuplicateNextWhat is the Expression and how to use it

Last updated 24 days ago

Was this helpful?