Click or drag to resize
ContactHelperMerge Method (ContactInfo, ListContactInfo, 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,
	List<ContactInfo> mergeContacts,
	Hashtable ACcollisionResult,
	Hashtable CGresult
)

Parameters

mergeInto
Type: CMS.OnlineMarketingContactInfo
Optional. If not specified then new contact will be created
mergeContacts
Type: System.Collections.GenericListContactInfo
List of ContactInfo object to be merged
ACcollisionResult
Type: System.CollectionsHashtable
Optional. Hashtable containing result of 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