Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

MatchResult Class

Represents the duplicate results for a matching rule.

Namespace

Datacloud

MatchResult Methods

The following are methods for MatchResult.

getEntityType()

Returns the entity type of the matching rule.

Signature

public String getEntityType()

Return Value

Type: String

getErrors()

Returns errors that occurred during matching for the matching rule.

Signature

public List<Database.Error> getErrors()

Return Value

Type: List<Database.Error>

getMatchEngine()

Returns the match engine for the matching rule.

Signature

public String getMatchEngine()

Return Value

Type: String

getMatchRecords()

Returns information about the duplicates for the matching rule.

Signature

public List<Datacloud.MatchRecord> getMatchRecords()

Return Value

Type: List<Datacloud.MatchRecord>

getRule()

Returns the developer name of the matching rule.

Signature

public String getRule()

Return Value

Type: String

getSize()

Returns the number of duplicates detected by the matching rule.

Signature

public Integer getSize()

Return Value

Type: Integer

isSuccess()

Returns false if there’s an error with the matching rule, and true if the matching rule successfully ran.

Signature

public Boolean isSuccess()

Return Value

Type: Boolean