GLAccount Class

This global class allows users to get List GLAccount Defaults by Ledger Id.

GLAccount Properties

The following are properties for the GLAccount class.

GLAccountException

The custom Exception type GLAccountException.

Type: AcctSeed.GLAccount.GLAccountException

GLAccount class Methods

The following are the methods for the GLAccount class. All methods are static.

retrieveDefaults(Id)

Signature

global static List<AcctSeed.GLAccountDefault> retrieveDefaults(Id ledgerId)

Return Value
Type: List<AcctSeed.GLAccountDefault>

Parameters Type: [Id] (AcctSeed__Ledger__c)

Usage

try {
    AcctSeed__Ledger__c ledger = [SELECT Id FROM AcctSeed__Ledger__c LIMIT 1];
    List<AcctSeed.GLAccountDefault> defaults = AcctSeed.GLAccount.retrieveDefaults(ledger.Id);
} catch (AcctSeed.GLAccount.GLAccountException ex) {
    System.debug(ex.getMessage());
}