Newer Version Available
MatchRecord
Fields
| Field | Details |
|---|---|
| additionalInformation |
|
| fieldDiffs |
|
| matchConfidence |
|
| record |
|
Usage
MatchRecord and its constituent objects are available to organizations that use duplicate rules.
Each MatchRecord represents a duplicate detected when a record is saved. There can be multiple MatchRecord objects for a saved record if multiple duplicates are detected.
Java Sample
Here is a sample that shows how to display the ID and type of all duplicates detected when a lead is saved. See DuplicateResult for a full code sample that shows how to block users from entering duplicate leads and display an alert and a list of duplicates.
1swfobject.registerObject("clippy.codeblock-0", "9");
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17for (MatchRecord mr : m.getMatchRecords()) {
18 System.out.println("Your record matched " + mr.getRecord().getId() + " of type "
19 + mr.getRecord().getType());
20 System.out.println("The match confidence is " + mr.getMatchConfidence());
21}