ContactHelper Merge Method (ContactInfo, List ContactInfo , Hashtable, Hashtable)Kentico 8.1 API Reference
Will merge contacts into another contact. If contacts are from different sites then new global contact will be created.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

mergeInto
Type: CMS.OnlineMarketing ContactInfo
Optional. If not specified then new contact will be created
mergeContacts
Type: OnlineSystem.Collections.Generic List ContactInfo 
List of ContactInfo object to be merged
ACcollisionResult
Type: OnlineSystem.Collections Hashtable
Optional. Hashtable containing result of collision results. Contains 'AccountID' keys and 'ContactRoleID' values.
CGresult
Type: OnlineSystem.Collections Hashtable
Optional. Hashtable containing result of contact groups which should be added to parent contact.

Return Value

Type: ContactInfo
If merged contacts are from different sites then newly created contact will be returned. Otherwise contact passed as mergeInto parameter will be returned.
See Also