MergeResult Class

Contains the result of a merge Database method operation.

Namespace

Database

Usage

The Database.merge method returns a Database.MergeResult object for each merged record.

MergeResult Methods

The following are methods for MergeResult. All are instance methods.

getErrors()

Returns a list of Database.Error objects representing the errors encountered, if any, during a merge operation using the Database.merge method. If no error occurred, returns null.

Signature

public List<Database.Error> getErrors()

Return Value

Type: List<Database.Error>

getId()

Returns the ID of the master record into which other records were merged.

Signature

public Id getId()

Return Value

Type: ID

getMergedRecordIds()

Returns the IDs of the records merged into the master record.

Signature

public List<String> getMergedRecordIds()

Return Value

Type: List<String>

getUpdatedRelatedIds()

Returns the IDs of all related records that were reparented as a result of the merge that are viewable by the user sending the merge call.

Signature

public List<String> getUpdatedRelatedIds()

Return Value

Type: List<String>

isSuccess()

Indicates whether the merge was successful (true) or not (false).

Signature

public Boolean isSuccess()

Return Value

Type: Boolean