The following are methods for FindDuplicates.
Use FindDuplicates to apply active duplicate rules associated with an object to records represented by input sObjects.
FindDuplicates uses the duplicate rules for the object that has the same type as the input sObjects.
Account acct = new Account(); acct.Name = 'Acme'; acct.BillingStreet = '123 Fake St'; acct.BillingCity = 'Springfield'; acct.BillingState = 'VT'; acct.BillingCountry = 'US'; List<Account> acctList = new List<Account>(); acctList.add(acct); if (Datacloud.FindDuplicates.findDuplicates(acctList).size() == 0) { // If the new account doesn't have duplicates, insert it. insert(acct); }
public static List<Datacloud.FindDuplicatesResult> findDuplicates(List<SObject> sObjects)
Type: List<FindDuplicatesResult>