The following are methods for FindDuplicatesByIds.
Use FindDuplicatesByIds to apply active duplicate rules associated with an object to records represented by the record IDs.
FindDuplicatesByIds uses the duplicate rules for the object that has the same type as the input record IDs. For example, if the record ID represents an Account, FindDuplicatesByIds uses the duplicate rules associated with the Account object.
Account acct = new Account(name='Salesforce'); insert acct; List<Id< idList = new List<Id<(); idList.add(acct.id); if (Datacloud.FindDuplicatesByIds.findDuplicatesByIds(idList).size() > 0) { System.debug('Found duplicates'); }
public static List<Datacloud.FindDuplicatesResult> findDuplicatesByIds(List<Id> ids)
Type: List<FindDuplicatesResult>