Article Details
Id:17739
Product:finPOWER Connect
Type:NEW
Version:3.03.05
Opened:14/01/2021
Closed:14/01/2021
Released:25/02/2021
Job: J025766

finAccountFunctions; Helper functions added to retrieve Account History Items

The following Functions have been added to finAccountFunctions:

  • GetAccountHistoryItems(accountId, accountHistoryItems)
  • GetAccountHistoryItemsByType(accountId, accountHistoryType, accountHistoryItems)

These Functions allow Scripts to bypass the loading of an Account to retrieve History Items and have been implemented predominantly to support Account-based HTML Widgets which support a "History" page.

Note: GetAccountHistoryItems() retrieves the finAccount.HistoryItems collection; whist GetAccountHistoryItemsByType() retrieves the collection using the finAccount.HistoryItems.GetItemsByHistoryType() Function. This therefore means that if the calling Script already has access to a loaded finAccount object then these Functions should not be used, as another finAccount object will be created and loaded. In this case, accessing the collections directly should be the preferred approach.