---
schema_version: "1"
id: 297f911b883ae754701a39e1d91709bfb503fd15a08f1727ed3cf3d4e7724358
title: Get Duplicate Management Configuration for a Specified Object
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/uiapi/ui_api_resources_duplicates_get.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_duplicates_get.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f500cbc52c65b987cc09c8cf3e091c87d3fb2ec7b3e08a787a68b90bda33a24c
description: Learn whether duplicate management is configured for the specified object. If duplicate management is configured, learn about the object's duplicate rules and matching rules. Use the information in the response to know when to check for duplicate records.
---
# Get Duplicate Management Configuration for a Specified Object

Learn whether duplicate management is configured for the specified object. If duplicate management is configured, learn about the object's duplicate rules and matching rules. Use the information in the response to know when to check for duplicate records.

Resource

/ui-api/duplicates/{objectApiName}

objectApiName—The API name of a [supported object](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_get_started_supported_objects.htm#ui_api_get_started_supported_objects "User Interface API supports all custom objects and external objects and many standard objects.").

Available Version

50.0

HTTP Method

GET

Example

Use the following request to learn what duplicate management is configured for the custom object Movie.

/ui-api/duplicates/Movie\_\_c

The response tells you that duplicate management is configured, and that the fields Name and Year are used to check for duplicates.

// duplicate rules and matching rules are configured for Movie
dedupeEnabled: true

// these fields are used to check for duplicate records
dedupeFields
0: Name
1: Year\_\_c
...

From the preceding response, you know to check the Name and Year fields when adding or updating a Movie record. For example, you can check if a movie with the name "Aliens" and the release year "1986" already exists.

ui-api/predupe{
"apiName" : "Movie\_\_c",
"fields" :
{"Name": "Aliens",
  "Year\_\_c": "1986"
}

Request Parameters

| Parameter Name | Type | Description | Required or Optional | Available Version |
| --- | --- | --- | --- | --- |
| recordTypeId | String | The record type ID (RecordType object) used to return the correct duplicate configuration. This field is optional, except for the Person Account object. If you’re searching for duplicate Person Account records, you must specify the Person Account record type ID here. | Optional | 52.0 |

Response Body

[Duplicates Configuration](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_responses_duplicates_configuration.htm "Contains information about duplicate management configuration for an object. Learn whether duplicate management is configured, which fields are used to determine whether duplicate records exist, and which duplicate rules are active.")

#### See Also

- [Check for Duplicate Records](https://developer.salesforce.com/docs/atlas.en-us.uiapi.meta/uiapi/ui_api_resources_predupe_create.htm "Before updating or creating a record, you can check whether a duplicate record exists. Use the response to learn whether to block or allow the action, and whether to warn the user.")