---
title: "Codeunit 5060 DuplicateManagement"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5060-duplicatemanagement/
type: codeunit
id: 5060
name: "DuplicateManagement"
app: "Base Application"
namespace: Microsoft.CRM.Duplicates
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5060-duplicatemanagement/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 5060 DuplicateManagement

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5060-duplicatemanagement/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.CRM.Duplicates |
| Versions | 17-28 |
| Source file | CRM/Duplicates/DuplicateManagement.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| MakeContIndex | (Record Contact) | - | public | 17-28 | - | - |
| RemoveContIndex | (Record Contact, Boolean) | - | public | 17-28 | - | - |
| DuplicateExist | (Record Contact) | Boolean | public | 17-28 | - | - |
| LaunchDuplicateForm | (Record Contact) | - | public | 17-28 | - | - |
| Notify | () | - | public | 17-28 | - | - |
| RunModalContactDuplicates | (Notification) | - | public | 17-28 | - | - |
| ComposeIndexString | (var RecordRef, Integer, Option, Integer) | Text[10] | public | 24-28 | - | - |
| ComposeSearchString | (var RecordRef, Integer, Enum Duplicate Search String Part, Integer) | Text[10] | public | 28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnInsDuplContIndexOnBeforeDuplContSearchStringInsert | (var Record Contact, var Record Cont. Duplicate Search String, Record Duplicate Search String Setup) | 17-28 | - | - |
| Integration event | OnInsDuplContOnAfterDuplContSearchString2SetFilters | (var Record Cont. Duplicate Search String, var Record Cont. Duplicate Search String) | 17-28 | - | - |
| Integration event | OnInsDuplContOnAfterDuplContSetFilters | (var Record Contact Duplicate, var Record Cont. Duplicate Search String) | 17 | - | - |
| Integration event | OnMakeContIndex | (var Record Contact, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeRemoveContIndex | (Record Contact, Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnInsDuplContOnAfterDuplContSetFilters | (var Record Contact Duplicate, var Record Cont. Duplicate Search String, var Record Duplicate Search String Setup) | 18-28 | - | - |
| Integration event | OnBeforeDuplicateExist | (Record Contact, var Boolean, var Boolean) | 19-28 | - | - |
| Integration event | OnMakeContIndexOnBeforeInsDuplCont | (var Record Contact, var Boolean) | 24-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
