Matches the fields in the object passed through the method directly with the fields in the database and returns the duplicate records.
Parameters:
obj
The salesforce sObject to be searched for duplicates. You can use any salesforce sObject in the method. You can pass the object to the method without casting the object as an sObject type. The object to be searched need not exist in the database.
searchMode
Specifies whether the search matches all the fields or any one of the fields. Specify AND to return records by matching all the fields. Specify OR to return records by matching any one field. When you specify OR, the search might return a large number of records.
searchSources
The salesforce object to be compared with the sObject. You can compare the sObject passed through the method with any other type of salesforce object that is synchronized with CC360. You must define the object in CC360 data sources as part of custom settings. To search for duplicates, CC360 uses the match settings defined as part of custom settings.
sortOrder
Controls the sort order of the beans returned by the search. The recommended value is null.
Returns:
The list of duplicate records for the specified sObject.