AccountHelper Merge Method (AccountInfo, List AccountInfo , Hashtable, Hashtable)Kentico 8.0 API Reference
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.0.0.0 (8.0.5239.26125)

Parameters

mergeInto
Type: CMS.OnlineMarketing AccountInfo
Optional. If not specified then new account will be created.
mergeAccounts
Type: OnlineSystem.Collections.Generic List AccountInfo 
List of AccountInfo objects to be merged
ACcollisionResult
Type: OnlineSystem.Collections Hashtable
Optional. Hashtable containing result of account-contact collision results. Contains 'ContactID' 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: 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