Table of Contents

Interface IContactMergeService

Namespace
CMS.ContactManagement
Assembly
CMS.ContactManagement.dll

Provides method for merging of a ContactInfo into another one.

public interface IContactMergeService
Extension Methods

Methods

MergeContactByEmail(ContactInfo)

Tries to merge given contact by ContactEmail. Moves subscriptions and copies contact's data. Moves activities, memberships, relations and copies contact's data. Given contact will be used as merge target, i.e. this particular ContactInfo will remain, while others with the same ContactEmail will be merged to the contact.

void MergeContactByEmail(ContactInfo contact)

Parameters

contact ContactInfo

Contact to be merged with existing one by their emails

Remarks

Does not set the result of merge to the current context or store the GUID in response cookie. If the result should be somehow persistent during requests, caller of the method has to call SetCurrentContact(ContactInfo) with the merged contact.

MergeContacts(ContactInfo, ContactInfo)

Merges given source contact to the target. Moves subscriptions and copies contact's data. Moves activities, memberships and relations.

void MergeContacts(ContactInfo source, ContactInfo target)

Parameters

source ContactInfo

Source contact to be merged to the target

target ContactInfo

Target contact the source is to be merged to

Remarks

Does not set the result of merge to the current context or store the GUID in response cookie. If the result should be somehow persistent during requests, caller of the method has to call SetCurrentContact(ContactInfo) with the merged contact.