# Dataset Deduplication for CRM Lead Cleanup

**Use case:** 

Deduplicate scraped lead datasets by domain and email, normalize whitespace and casing, and write unique records to an output dataset.

## Input

```json
{
  "datasetIds": [
    "a8HvXCQBgz2jolQa4"
  ],
  "fields": [
    "domain",
    "email"
  ],
  "keepOrder": "first",
  "caseInsensitive": true,
  "trimWhitespace": true,
  "outputDatasetId": "clean-crm-leads",
  "maxItems": 100000
}
```

## Output

```json
{
  "uniqueKey": {
    "label": "Unique key",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Dataset Deduplicator](https://apify.com/automation-lab/dataset-dedup) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/dataset-dedup) to learn more, explore other use cases, and run it yourself.