Click or drag to resize
AccountHelperMerge Method (AccountInfo, ListAccountInfo, Hashtable, Hashtable)
Will merge accounts into another account. If accounts are from different sites then new global account will be created.

Namespace: CMS.OnlineMarketing
Assembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 8.2.23
Syntax
C#
public static AccountInfo Merge(
	AccountInfo mergeInto,
	List<AccountInfo> mergeAccounts,
	Hashtable ACcollisionResult,
	Hashtable CGresult
)

Parameters

mergeInto
Type: CMS.OnlineMarketingAccountInfo
Optional. If not specified then new account will be created.
mergeAccounts
Type: System.Collections.GenericListAccountInfo
List of AccountInfo objects to be merged
ACcollisionResult
Type: System.CollectionsHashtable
Optional. Hashtable containing result of account-contact collision results. Contains 'ContactID' 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: AccountInfo
If merged accounts are from different sites then newly created account will be returned. Otherwise account passed as mergeInto parameter will be returned.
See Also