c2g.MergeAccountsServiceglobal with sharing class MergeAccountsService The service class relating to Merge Accounts. Methods
MergeAccountsServiceglobal MergeAccountsService() mergeAccountsglobal static c2g.MergeAccountsService.MergeAccountsResponse mergeAccounts(List<c2g.MergeAccountsService.MergeAccounts> mergeAccounts) This service validates the accounts to be merged, and merges child accounts into master accounts in bulk. Input Parameters
Return ValueMergeAccountsResponse which contains a Batch Job Id and the MergeAccounts list. c2g.MergeAccountsService.MergeAccountsglobal with sharing class MergeAccounts Holds the master and child accounts, and any validation errors that occurred during the merge operation. Methods
MergeAccountsglobal MergeAccounts(ID masterAccountId, ID mergeAccount1Id, ID mergeAccount2Id, Boolean overWriteMergedAccount) This is the constructor for MergeAccounts class. Input Parameters
getOverWriteMergedAccountglobal Boolean getOverWriteMergedAccount() Pass True if an account is involved in an incomplete merge process and you want to merge it again in the current merge process. Pass False if you do not want to merge an account again. c2g.MergeAccountsService.MergeAccountsResponseglobal with sharing class MergeAccountsResponse This class provides information about all the accounts in the mergeAccounts list, and the batch Job Id. Methods
MergeAccountsResponseglobal MergeAccountsResponse(List<c2g.MergeAccountsService.MergeAccounts> mergeAccounts, Id apexJobId) This is the constructor for MergeAccountsResponse class. Input Parameters
getMergeAccountsglobal List<c2g.MergeAccountsService.MergeAccounts> getMergeAccounts() This list contains all the mergeAccounts with a list of error messages. If all validations pass this list will be empty, otherwise it will contain error messages for the associated merge account. |