Table of Contents

Search

  1. Preface
  2. API Reference

global static Decimal getScore (Id sObjectId1, Id sObjectId2, Boolean isPartial , Decimal threshold, String settingName)

global static Decimal getScore (Id sObjectId1, Id sObjectId2, Boolean isPartial , Decimal threshold, String settingName)

Compares a bean to bean, master bean to master bean, bean to master bean, or master bean to bean and returns the fuzzy comparison score. The match score is calculated using the specified match setting. If any field with weightage > 100 does not match, score is returned as zero. Otherwise, a score is returned regardless of the value in the Duplicate Check Threshold and High Matching Threshold.

Parameters:

sObjectId1
The first Salesforce object ID.
sObjectId2
The second Salesforce object ID.
isPartial
Default is true. isPartial causes an early exit from the comparison when the negative score exceeds threshold.
threshold
The threshold score. If you do not specify a value, the parameter uses the Duplicate Check Threshold from the match setting.
settingName
The name of the match setting. For example, account.

Returns:

The fuzzy comparison score.

0 COMMENTS

We’d like to hear from you!