Click or drag to resize
IContactMergeServiceMergeContactByEmail Method
Tries to merge given contact by ContactEmail. 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.

Namespace: CMS.ContactManagement
Assembly: CMS.ContactManagement (in CMS.ContactManagement.dll) Version: 10.0.0
Syntax
C#
void MergeContactByEmail(
	ContactInfo contact
)

Parameters

contact
Type: CMS.ContactManagementContactInfo
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.
See Also