Click or drag to resize
ContactHelperMerge Method (ContactInfo, DataSet, Hashtable, Hashtable)
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: 9.0.0
Syntax
C#
public static ContactInfo Merge(
	ContactInfo mergeInto,
	DataSet mergeContacts,
	Hashtable ACcollisionResult,
	Hashtable CGresult
)

Parameters

mergeInto
Type: CMS.OnlineMarketingContactInfo
Optional. If not specified then new contact will be created
mergeContacts
Type: System.DataDataSet
Dataset of ContactInfo objects to be merged
ACcollisionResult
Type: System.CollectionsHashtable
Optional. Hashtable containing result of account-contact collision results. Contains 'AccountID' keys and 'ContactRoleID' values.
CGresult
Type: System.CollectionsHashtable
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