> For the complete documentation index, see [llms.txt](https://help.delpha.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.delpha.io/delpha-for-salesforce/how-to-faq/delpha-duplicate/how-can-i-create-custom-reports-on-duplicate.md).

# How can I create custom reports on Duplicate

Learn how to create a custom Salesforce report on Delpha duplicate records using the DDQ\_DuplicateRecord object. Includes filters, fields, and setup guide.

## How to Create a Custom Report on Duplicate Records in Delpha

If you are managing duplicate detection with Delpha, you may want to build detailed reports to analyze duplicate pairs by score, status, or specific field values. This guide walks you through creating a custom Salesforce Report Type using the DDQ Duplicate Record object and setting up side-by-side comparison fields.

### 1. Create the Custom Report Type

1. In Salesforce, navigate to Setup (gear icon ⚙️).
2. In the Quick Find box, enter Report Types and select it.
3. Click New Custom Report Type.
4. Configure the report type details:

| **Setting**       | **Value**                                                  |
| ----------------- | ---------------------------------------------------------- |
| Primary Object    | `DDQ Duplicate Records` (`delpha__DDQ_DuplicateRecord__c`) |
| Report Type Label | `DC_DuplicateRecord`                                       |
| Report Type Name  | `DC_DuplicateRecord`                                       |
| Description       | Delpha – created for reporting on Duplicate Records        |
| Store in Category | Other Reports                                              |
| Deployment Status | Deployed                                                   |

5. Click Next, then click Save.

### 2. Add Lookup Fields

Depending on your deduplication configuration, you can pull fields from both the source record and the matched record into your report:

* Account / Person Account:
  * `Account` (`delpha__Account__c`)
  * `Matched Account` (`delpha__Matched_Account__c`)
* Contact:
  * `Contact` (`delpha__Contact__c`)
  * `Matched Contact` (`delpha__Matched_Contact__c`)
* Lead:
  * `Lead` (`delpha__Lead__c`)
  * `Matched Lead` (`delpha__Matched_Lead__c`)
* Lead vs Contact:
  * `Lead` (`delpha__Lead__c`)
  * `Matched Contact` (`delpha__Matched_Contact__c`)
* Case:
  * `Case` (`delpha__Case__c`)
  * `Matched Case` (`delpha__Matched_Case__c`)

{% hint style="danger" %}
**Salesforce Enhanced Builder Bug**: If you have the Enhanced Custom Report Type Setup Page enabled in Salesforce, the Lightning editor suffers from a known client-side state issue when referencing multiple lookups to the same destination object (e.g., pulling fields from both `Account` and `Matched Account`).\
Applying the second lookup will inadvertently clear or overwrite the fields added by the first lookup.&#x20;

To bypass this Salesforce platform limitation, follow the 4-step legacy workaround below.
{% endhint %}

#### Step 1: Temporarily Disable the Enhanced Report Type Builder

Revert temporarily to Salesforce's classic layout editor, which handles multiple lookups to the same object without overwriting canvas metadata.

1. Go to Setup > Quick Find > search for **Reports and Dashboards Settings**.
2. Scroll to **Enhanced Custom Report Type Setup Page** and uncheck the box.
3. Click Save.

#### Step 2: Add Lookup Sets in the Legacy Builder

1. In Setup, search for Report Types and select your report type (e.g. `DC_DuplicateRecord`).
2. Scroll to **Fields Available for Reports** and click **Edit Layout**.
3. In the right-hand panel, click the blue link **Add fields related via lookup**:
   * Click Account $$\rightarrow$$ select the fields you want to display (e.g., *Account Name*, *Billing City*, *Website*) $$\rightarrow$$ click OK.

**A new sets of fields will now appear on the canvas.**&#x20;

#### Step 3: Organize Fields into Dedicated Sections

To keep the Report Builder clean and allow users to distinguish between the two records:

1. Click **Create New Section** on the layout canvas.
   * Section Name: Account&#x20;
   * Click OK,&#x20;
2. Drag your Account lookup fields into this section.

**Repeat steps 2 and 3 for the Matched Record fields (Matched Account)**&#x20;

#### Step 4: Re-Enable the Enhanced Report Type Builder

Once saved, the fields and sections are committed to the Salesforce metadata. The Lightning builder will now read and display them without issues.

1. Navigate back to Setup > Reports and Dashboards Settings.
2. Check the box for Enhanced Custom Report Type Setup Page.
3. Click Save.

### 3. Create and Customize Your Report

1. Open the Reports tab and click New Report.
2. In the report type search bar, search for and select DC\_DuplicateRecord.
3. Click Start Report.

#### Recommended Filters

| **Filter Type**   | **Example Syntax**                                                                                                                                          | **Purpose**                                                       |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| Duplicate Setting | `Duplicate Settings` equals `a0LWx000003l1JtMAI`                                                                                                            | Isolates duplicates from the duplicate setting a0LWx000003l1JtMAI |
| Geography         | <p><code>Account: Billing Country</code> equals <code>France</code><br><br><code>Matched Account: Billing Country</code> equals <code>France</code><br></p> | Limits duplicates to a single region                              |
| Timeframe         | `Created Date` equals `LAST 30 DAYS`                                                                                                                        | Tracks recently flagged duplicates                                |
| Status            | `Status` equals `Potential`                                                                                                                                 | Shows pending/unresolved duplicates                               |

#### Recommended Columns

Arrange related fields side-by-side to make manual validation fast:

* Detection Metrics: `Score`, `Status`, `Comment`, `Processed`
* Name Comparison: `Account: Name` | `Matched Account: Name`
* Address Comparison: `Account: Billing City` | `Matched Account: Billing City`
* Digital Footprint: `Account: Website` | `Matched Account: Website`

{% hint style="info" %}
Pro Tip:&#x20;

* Placing fields side-by-side allows team members to quickly spot typos, conflicting data, or missing information directly from the report view without having to open both records in separate tabs.
* You can pull any field from the source and matched objects into this report type—even fields that are not actively used in your Delpha duplicate matching rules.
  {% endhint %}

### Summary

With this Custom Report Type configured, your team can track duplicate trends, review confidence scores, and validate candidate pairs side-by-side to measure and optimize your Delpha deduplication strategy.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.delpha.io/delpha-for-salesforce/how-to-faq/delpha-duplicate/how-can-i-create-custom-reports-on-duplicate.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
