How to find MainAccount with LedgerDimension (X++)

Hi, i will show you how to get the MainAccount record with the LedgerDimension.

You can use "DimensionStorage" class to achieve this.
Below code finds the whole Main Account record with a ledgerDimension RecId.


    DimensionStorage    dimStorage;
    MainAccount         mainAccount;
   
    MainAccount = DimensionStorage::getMainAccountFromLedgerDimension(ledgerDimension); //Parameter as the LedgerDimension RecId 

Comments

Popular posts from this blog

How to do barcode in SSRS (X++)

How to find Company Logo (X++)