MergeRequest

Represents the details related to tracking the merge history of records. It maps the losing record (deleted as result of merge) to the winning records (remains after merge). This object is available in API version 65.0 and later.

Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

Fields

ErrorMessage

  • Type: textarea
  • Properties: Create, Nillable, Update
  • Description: The error message displayed when the merge request processing fails.

ExecutionJobIdentifier

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The ID of the job that processed the merge request.

ExecutionJobType

  • Type: picklist
  • Properties: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update
  • Description: Specifies the type of job that processes the merge request.
  • Default value: BatchJob
  • Possible values:
    • BatchJob—Batch Job

FinalWinningRecIdentifier

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The Salesforce ID of the final winning record. This occurs when the winning record becomes a losing record in a subsequent merge request.

LastReferencedDate

  • Type: dateTime
  • Properties: Filter, Nillable, Sort
  • Description: The timestamp when the current user last accessed this record indirectly, for example, through a list view or related record.

LastViewedDate

  • Type: dateTime
  • Properties: Filter, Nillable, Sort
  • Description: The timestamp when the current user last viewed this record or list view.

LosingExtlRecordIdentifier

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The external ID of the losing record in the merge request.

LosingOfflineRecIdentifier

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The offline ID of the losing record's external ID in the merge request.

LosingRecordIdentifier

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The Salesforce ID of the losing record in the merge request.

Name

  • Type: string
  • Properties: Autonumber, Defaulted on create, Filter, idLookup, Sort
  • Description: The auto-numbered name of the merge request.

ObjectType

  • Type: picklist
  • Properties: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
  • Description: Specifies the type of object for which the merge request is created.
  • Default value: Account
  • Possible values:
    • Account

OriginType

  • Type: picklist
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: Specifies the source of the merge request.

OwnerId

  • Type: reference
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: The ID of the owner of the merge request record.

    This field is a polymorphic relationship field.

  • Relationship Name: Owner
  • Refers To: Group, User

ShouldOverrideBlankValues

  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: Indicates whether to update blank values of winning account fields with losing account fields (true) or not (false). The winning account is updated only if there are values in the losing account.
  • Default value: false

SourceSystemIdentifier

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The identifier of the record in the source system.

SourceSystemName

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The name of the system from which data is loaded into the object.

Status

  • Type: picklist
  • Properties: Create, Defaulted on create, Filter, Group, Restricted picklist, Sort, Update
  • Description: Specifies the status of the merge request.
  • Default value: Requested
  • Possible values:
    • Completed
    • Error
    • InProgress—In Progress
    • Requested

WinningExtlRecordIdentifier

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The external ID of the winning record in the merge request.

WinningRecordIdentifier

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: The Salesforce ID of the winning record in the merge request.

Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

MergeRequestChangeEvent
Change events are available for the object.
MergeRequestFeed
Feed tracking is available for the object.
MergeRequestHistory
History is available for tracked fields of the object.
MergeRequestShare
Sharing is available for the object.