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
The merge() call returns an array of MergeResult
objects.
A MergeResult object has these properties.
| Name | Type | Description |
|---|---|---|
| errors | Error[] | If an error occurred during the merge() call, an array of one or more Error objects providing the error code and description. |
| id | ID | ID of the primary record, the record into which the other records were merged. |
| mergedRecordIds | ID[] | ID of the records that were merged into the primary record. If successful, the values match mergeRequest.recordToMergeIds. |
| success | boolean | Indicates whether the merge was successful (true) or not (false). |
| updatedRelatedIds | ID[] | ID of all related records that were moved (reparented) as a result of the merge, and that are viewable by the user sending the merge call. |