Hello !
I'm working on code migration from AX 2013 R3 to Dynamics 365.
I found that DimensionStorage::GetMainAccountFromLedgerDimension static class is not longer available.
Which would be the right way to obtain a Ledger Dimension mainAccountId, given its recordId ?
This is an example of AX2012 code I'd be needing to upgrade:
RecId recid;
MainAccount mainaccount;
recid = 5637147581;
mainaccount = DimensionStorage::GetMainAccountFromLedgerDimension(recid);
 
I'd appretiate any help.
Thanks!
*This post is locked for comments