Ledger::findLedgerRecIdByLegalEntity Method
Gets the ID of the primary ledger that is associated with the legal entity.
Syntax
client server public static LedgerRecId findLedgerRecIdByLegalEntity(LegalEntityRecId _legalEntityRecId)
Run On
Called
Parameters
- _legalEntityRecId
Type: LegalEntityRecId Extended Data Type
The record ID of the legal entity.
Return Value
Type: LedgerRecId Extended Data Type
The ID of the ledger; otherwise, 0.