web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :

Get ledger dimension values for active account structure in AX 2012 & D365FO

Sheikh Sohail Profile Picture Sheikh Sohail 6,125




public static DimensionValue getdimensionValue(LedgerDimensionAccount _ledgerDimension, Name _dimensionName ){DimensionAttributeLevelValueAllView dimAttrView; //View that will display all values for ledger dimensionsDimensionAttribute dimAttr; //Main dimension attribute table

select DisplayValue from dimAttrViewwhere dimAttrView.ValueCombinationRecId == _ledgerDimension //generalJournalAccountEntry.LedgerDimensionjoin BackingEntityType from dimAttrwhere dimAttr.RecId == dimAttrView.DimensionAttribute&& dimAttr.Name == _dimensionName; // Dimension field name
return dimAttrView.DisplayValue; }

This was originally posted here.

Comments

*This post is locked for comments