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.OnlineMarketingAssembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 8.2.23
Syntax 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:
AccountInfoIf merged accounts are from different sites then newly created account will be returned. Otherwise account passed as mergeInto parameter will be returned.
See Also