c2g.BalanceUpdateServiceglobal with sharing class BalanceUpdateService The service class relating to Balance Update. Methods
BalanceUpdateServiceglobal BalanceUpdateService() updateBalancesForMergedAccountsAsyncglobal static void updateBalancesForMergedAccountsAsync(Set<Id> masterAccountIds) Update Reporting Balances or Budgets and Balances, depending on the selected mode in the application, based on the merged accounts received by the service call. The process will sum the information of balances which have exactly the same hash code. A batch job will be started and an email will be sent when the process has finished. Use the BalanceUpdateRunMergedAccount (Run Balance Update for Merged Accounts) custom permission to grant permission on this method. Input Parameters
Return ValueThis service does not return a value. rebuildBalancesAsyncglobal static void rebuildBalancesAsync(Id intersectDefinitionId, Id fromPeriodId, Id toPeriodId) Update Reporting Balances or Budgets and Balances from Transactions depending on the selected mode in the application. The corresponding process will start a batch job which will only update Balances for the criteria specified by the received parameters. Use the BalanceUpdateRun (Run Balance Update) custom permission to grant permissions on this service. Input Parameters
Return ValueThis service does not return a value. runFullSynchronizationglobal static Integer runFullSynchronization() Runs a full synchronization of balances in accordance with the selected live balance mode in the application. The process will start a batch job if the number of processed records exceeds the customized threshold limit for the process. Use the BalanceUpdateSynchronization (Run Balance Update Synchronization) custom permission to grant permissions on this service. Return ValueThis service returns an Integer object. runIncrementalSynchronizationglobal static Integer runIncrementalSynchronization() Runs an incremental synchronization of balances in accordance with the selected live balance mode in the application. The process will start a batch job if the number of processed records exceeds the customized threshold limit for the process. Use the BalanceUpdateSynchronization (Run Balance Update Synchronization) custom permission to grant permissions on this service. Return ValueThis service returns an Integer object. |