dc3SearchResult

The dc3SearchResult class processes and organizes duplicate search results

Class Summary

The dc3SearchResult class represents a single result in a duplicate record search, capturing key information such as a ranking score, the duplicate record’s data, and scenario-specific scores. It provides methods to fetch object metadata, generate customizable result fields, serialize scenario scores, and compare results for sorting. The class includes nested structures like ScenarioScore for detailed scoring and IndexSearchData for indexing metadata.

Fields

NameTypeDescription
scoreIntegerDuplicate matching score
objectDataSObjectThe duplicate record's data.
scenarioScoresList<ScenarioScore>List of scenario-specific scores.

ScenarioScore

FieldTypeDescription
scenarioIdIdIdentifier for the scenario used in the duplicate matching logic.
scenarioNameStringName of the scenario.
scenarioScoreIntegerScore assigned for the scenario, indicating match relevance.

Methods

MethodReturn TypeDescription
getObjectName()StringReturns the name of the Salesforce object (e.g., Contact, Lead) for the duplicate record.
getObjectPrefix()StringRetrieves the Salesforce object prefix (e.g., 003 for Contact) for configuration purposes.
getDisplayField()Map<String, Object>Returns a map of fields for display. The fields that are returned can be configured in the DC Setup.
compareTo(Object)IntegerCompares two results by score.

Code Examples

Find out how to use the dc3SearchResult class at our Code Examples article.


What’s Next