ContactHelper Merge Method (ContactInfo, DataSet, Hashtable, Hashtable)Kentico 8.0 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.0.5239.26125)

Parameters

mergeInto
Type: CMS.OnlineMarketing ContactInfo
Optional. If not specified then new contact will be created
mergeContacts
Type: OnlineSystem.Data DataSet
Dataset of ContactInfo objects to be merged
ACcollisionResult
Type: OnlineSystem.Collections Hashtable
Optional. Hashtable containing result of account-contact 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