MergeResult Class
Contains the result of a merge Database method operation.
The Database.merge method returns a Database.MergeResult object for each merged record.
The following are methods for MergeResult. All are instance methods.
-
Returns a list of
Database.Errorobjects representing the errors encountered, if any, during a merge operation using theDatabase.mergemethod. If no error occurred, returns null. -
Returns the ID of the master record into which other records were merged.
-
Returns the IDs of the records merged into the master record.
-
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.
-
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()
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()
Indicates whether the merge was successful (true) or not (false).
public Boolean isSuccess()
Type: Boolean