---
schema_version: "1"
id: 7499853430859e2fc458ca3a7723f468fbbc2e5de1f0715edaf9767b0bd1b3ca
title: DuplicateRecordSet
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_duplicaterecordset.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_duplicaterecordset.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e338f0afc638ccfff3242dc587f3dea12dda1d391c759b55c91ff2e9de9f7ac8
description: Represents a group of records that have been identified as duplicates. Each duplicate record set contains one or more duplicate record items. Use this object to create custom report types and view the results of duplicate jobs.
---
# DuplicateRecordSet

Represents a group of records that have been identified as duplicates. Each duplicate record set contains one or more duplicate record items. Use this object to create custom report types and view the results of duplicate jobs.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()

## Special Access Rules

To access this object, activate duplicate rules. A Salesforce admin must give users read and write access.

## Fields

| Field Name | Details |
| --- | --- |
| DuplicateRuleId | 
Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The duplicate rule used to identify this list of duplicate records.

Label

Duplicate Rule ID

This is a relationship field.

Relationship Name

DuplicateRule

Relationship Type

Lookup

Refers To

DuplicateRule



 |
| LastReferencedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last accessed this record, a record related to this record, or a list view.





 |
| LastViewedDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The timestamp when the current user last viewed this record or list view. If this value is null, the user might have only accessed this record or list view (LastReferencedDate) but not viewed it.





 |
| Name | 

Type

string

Properties

Autonumber, Defaulted on create, Filter, idLookup, Sort

Description

The autogenerated name that’s given to the duplicate record set. Label is Duplicate Record Set Name.





 |
| RecordCount | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

The number of record items in the set.





 |
| ParentId | 

Type

reference

Properties

Create, Filter, Group, Nillable, Sort, Update

Description

The ParentId represents the parent of a duplicate rule or duplicate job. A ParentId is polymorphic. The label is Parent. This field is available in API versions 42.0 and later.



 |