Article Details
| Id: | 16870 |
| Product: | finPOWER Connect |
| Type: | NEW |
| Version: | 3.03.00 |
| Opened: | 03/04/2020 |
| Closed: | 03/04/2020 |
| Released: | 01/05/2020 |
| Job: | J024045 |
finAccount object; new GetRelatedAccounts function added to return a list of related Accounts
A new function, GetRelatedAccounts, has been added to finAccount to return a collection of Accounts related to the current Account.
The function includes a number of parameters to filter the list of Accounts returned:
- Account Classes:
- includeLoanAccounts
- includeDepositAccounts
- includeDisbursementAccounts
- Account Roles; note, Owners are always returned
- includeGuarantors
- Account Status; note, Open Accounts are always included
- includeQuote
- includeClosed
- includeDeclinedAndUnwanted
Warning: the collection will include the current Account if it fits the criteria filters.
Sample code is shown below:
Dim AccountRelatedAccount As finAccountRelatedAccountDim AccountRelatedAccounts As finAccountRelatedAccountsIf Account.GetRelatedAccounts(AccountRelatedAccounts) ThenFor Each AccountRelatedAccount In AccountRelatedAccountsfinBL.DebugPrintFormat("{0} Status={1} ", AccountRelatedAccount.AccountId, AccountRelatedAccount.AccountStatusText)NextElseMain = FalseEnd If