Share via


MainAccount::findByMainAccountId Method

Finds the specified record in the MainAccount table.

Syntax

client server public static MainAccount findByMainAccountId(
    MainAccountNum _accountId, 
   [boolean _forUpdate, 
    RecId _chartOfAccounts])

Run On

Called

Parameters

  • _forUpdate
    Type: boolean
    A Boolean value that indicates whether to read the record for update; optional.

Return Value

Type: MainAccount Table
A record in the MainAccount table; otherwise, an empty record.

Remarks

If a chart of accounts is not specified, the chart of accounts for the primary ledger of the current company is used.

See Also

Reference

MainAccount Table