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
| Name | Type | Description | 
|---|---|---|
| score | Integer | Duplicate matching score | 
| objectData | SObject | The duplicate record's data. | 
| scenarioScores | List<ScenarioScore> | List of scenario-specific scores. | 
ScenarioScore
| Field | Type | Description | 
|---|---|---|
| scenarioId | Id | Identifier for the scenario used in the duplicate matching logic. | 
| scenarioName | String | Name of the scenario. | 
| scenarioScore | Integer | Score assigned for the scenario, indicating match relevance. | 
Methods
| Method | Return Type | Description | 
|---|---|---|
| getObjectName() | String | Returns the name of the Salesforce object (e.g., Contact,Lead) for the duplicate record. | 
| getObjectPrefix() | String | Retrieves the Salesforce object prefix (e.g., 003for 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) | Integer | Compares two results by score. | 
Code Examples
Find out how to use the dc3SearchResult class at our Code Examples article.
Updated 6 months ago
What’s Next