Overview

Search for duplicates by SObject

The doSearch(SObject objectData) method executes a search using the Plauti Deduplicate search engine to identify potential duplicates. This method uses the field values provided in the SObject instance to find matches, making it ideal for scenarios where custom field values need to be defined programmatically or when using data from an in-memory object.

Key points

  • Searches for duplicates using the field values in the provided SObject instance.
  • The search logic and the logic to generate a matching score are based on the applied Plauti Deduplicate scenario, ensuring results align with the predefined criteria and scoring rules.
    • All scenarios applied to “DC Apex API” are used for search logic and generating a matching score.
  • Returns a Map<String, List<dc3SearchResult>> containing potential duplicates.
  • If cross-object searching is configured in the DC Setup, the results can include duplicates from other objects as well (e.g., finding a Lead as a duplicate of a Contact).