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