In the below code have to pass ledgerDimension recId to get the main account Id.
Table.MainAccountId = MainAccount::findByLedgerDimension(ledgerDimension).MainAccountId;
Table.MainAccountId = MainAccount::findByLedgerDimension(ledgerDimension).MainAccountId;
Microsoft Dynamics AX Training
ReplyDeleteMS Dynamics AX Training
MS Dynamics Training in Hyderabad
Microsoft Dynamics AX Technical Training
Microsoft Dynamics AX Technical Training in Hyderabad