Overview

Calculate matching score with predefined scenario

The matchRecord(SObject recordA, SObject recordB, Set<Id> scenarioIds) method calculates a similarity score between two Salesforce records (recordA and recordB) using specific Duplicate Check (DC) scenarios. This score, ranging from 0 to 100, indicates how closely the records match based on the provided scenario IDs.

Key points

  • Compares two records (recordA and recordB) to determine their similarity.
  • The matching logic is determined by the provided scenario ID(s).
  • The method returns a score between 0 and 100.