Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
FindDuplicatesResult Class
Namespace
FindDuplicatesResult Properties
The following are properties for FindDuplicatesResult.
duplicateresults
Signature
public List<Datacloud.DuplicateResult> duplicateresults
Property Value
Type: List<DuplicateResult>
errors
Signature
public List<Database.Error> errors {get; set;}
Property Value
Type: List<Database.Error>
success
Signature
public Boolean success {get; set;}
Property Value
Type: Boolean
FindDuplicatesResult Methods
The following are methods for FindDuplicatesResult.
getDuplicateResults()
Example
1Account acct = new Account(name='Salesforce');
2List<Account> acctList = new List<Account>();
3acctList.add(acct);
4
5Datacloud.FindDuplicatesResult[] results = Datacloud.FindDuplicates.findDuplicates(acctList);
6for (Datacloud.FindDuplicatesResult findDupeResult : results) {
7 for (Datacloud.DuplicateResult dupeResult : findDupeResult.getDuplicateResults()) {
8 for (Datacloud.MatchResult matchResult : dupeResult.getMatchResults()) {
9 for (Datacloud.MatchRecord matchRecord : matchResult.getMatchRecords()) {
10 System.debug('Duplicate Record: ' + matchRecord.getRecord());
11 }
12 }
13 }
14}Signature
public List<Datacloud.DuplicateResult> getDuplicateResults()
Return Value
Type: List<DuplicateResult>
getErrors()
Signature
public List<Database.Error> getErrors()
Return Value
Type: List<Database.Error>
isSuccess()
Signature
public Boolean isSuccess()
Return Value
Type: Boolean