/ Microsoft / Get display value from ledger dimension in D365FO

Get display value from ledger dimension in D365FO

Learn, share and spread knowledge
Get display value from ledger dimension in D365FO

Ledger Dimension in Microsoft Dynamics 365 for Finance and Operations or in Microsoft Dynamics AX 2012 contains very important information. Actually, ledger dimension is just a number without any information. But, to get display value from ledger dimension in D365FO, you are actually at a right place.

Last time, I have shared the code about how to Get Main Account from Ledger Dimension in D365FO. In this article, I am sharing the one line code to get the display value using LedgerDimensionFacade class. See the following code:

//Get Display value from LedgerDimension
//The argument (LedgerDimensionValue) is LedgerDimension which you can get from table or any other source as per your requirement

info(strFmt("%1",LedgerDimensionFacade::getDisplayValueForLedgerDimension(LedgerDimensionValue)));

So, this is how you can get display value from ledger dimension in D365FO. If this helps you, please Like, Comment and Share to help other people.

If you found any ambiguity or a better solution, please feel free to ask.

See also:

Website: Click here

Blog: Click here

YouTube: Click here

GitHub: Click here

Facebook: Click here

The unexamined life is not worth living. – Socrates

1 POST COMMENT

Send Us A Message Here

Your email address will not be published. Required fields are marked *

1 Comments

NevoiTech Blog

A blog by Moeen Ahmed SultanNevoiTech logo

To hire freelancer or get personal training

of

Microsoft Dynamics 365 for Finance & Operations

Call Us: +92 321 458 9595