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

Parameters

mergeInto
Type: CMS.OnlineMarketingAccountInfo
Optional. If not specified then new account will be created
mergeAccounts
Type: System.DataDataSet
Dataset 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