MergeResult Class
Namespace
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
isSuccess()
Indicates whether the merge was successful (true) or not (false).
Signature
public Boolean isSuccess()
Return Value
Type: Boolean