MergeResult Class

Contains the result of a merge Database method operation.

Database

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

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.

  • getId()

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

  • getMergedRecordIds()

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

  • 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.

  • isSuccess()

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

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.

public List<Database.Error> getErrors()

Type: List<Database.Error>

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

public Id getId()

Type: ID

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

public List<String> getMergedRecordIds()

Type: List<String>

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.

public List<String> getUpdatedRelatedIds()

Type: List<String>

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

public Boolean isSuccess()

Type: Boolean