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.
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
Post a Comment