Validation Rule

Advanced Duplicate Lead Prevention Rule

A validation rule that uses a combination of fields and functions to prevent the creation of duplicate leads more effectively than standard duplicate rules.

Advanced Duplicate Lead Prevention Rule

Problem

Standard duplicate rules can be too rigid. Sometimes you need to check for variations in email addresses (e.g., gmail.com vs. googlemail.com) or phone numbers, which is not possible out-of-the-box.

Solution Overview

This solution is a single, powerful Validation Rule formula. It uses VLOOKUP on a custom object containing common email domain variations and REGEX to normalize phone numbers before checking for duplicates using a unique key.

How to Deploy

  1. Create the custom object for email domain mappings.
  2. Populate it with data.
  3. Create the Validation Rule on the Lead object using the provided formula.
  4. Activate the rule.

Related Solutions

Flow
intermediate

Round Robin Lead Assignment Flow

A flow that assigns new leads to a queue of users in a round-robin fashion, ensuring equitable distribution.

Round Robin Lead Assignment Flow
Flow
intermediate

Auto Convert Qualified Leads

Automatically converts leads to contacts, accounts, and optionally opportunities once they meet qualification criteria.

Auto Convert Qualified Leads
Integration
advanced

Google Drive Integration Snippet (Apex)

An Apex snippet demonstrating how to authenticate with the Google Drive API using OAuth 2.0 and upload a file from Salesforce.

Google Drive Integration Snippet (Apex)