Accounting Apex API Developer Reference

c2g.BalanceUpdateService

global with sharing class BalanceUpdateService

The service class relating to Balance Update.

Methods

BalanceUpdateService

global BalanceUpdateService()

updateBalancesForMergedAccountsAsync

global 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

Name Type Description
masterAccountIds Set<Id> List of master account Ids which will select the related balances to be updated.

Return Value

This service does not return a value.

rebuildBalancesAsync

global 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

Name Type Description
intersectDefinitionId Id The Id of the intersect definition of the balances which will be updated in the process. If a null value is received, all intersect definitions of the organization will be taken into account in the process.
fromPeriodId Id The Id of the starting period of the transactions which will be included in the process. A null value cannot be received.
toPeriodId Id The Id of the ending period of the transactions which will be included in the process. A null value cannot be received.

Return Value

This service does not return a value.

runFullSynchronization

global 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 Value

This service returns an Integer object.

runIncrementalSynchronization

global 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 Value

This service returns an Integer object.

© Copyright 2009–2024 Certinia Inc. All rights reserved. Various trademarks held by their respective owners.