global static Boolean isDuplicate (Id sObjectId1, Id sObjectId2, String settingName)
global static Boolean isDuplicate (Id sObjectId1, Id sObjectId2, String settingName)
Compares a bean to bean, master bean to master bean, bean to master bean, or master bean to bean and returns True if objects compared are duplicates. The score is calculated using the specified match setting. If the Total Score >= Duplicate Check Threshold of the match setting, the pair is considered a duplicate.
Parameters:
sObjectId1
The first Salesforce object ID.
sObjectId2
The second Salesforce object ID.
settingName
The name of the match setting.
Returns:
True or False. True indicates that the records are duplicate.