Thursday, 28 June 2018

Some basic methods for Dimensions in LedgerDimensionFacade class in D365 / AX7

In Dynamics 365 FO , Microsoft has introduced few more classes to help us with the Dimension related requirements. Here are few name of classes and method that can be used.


1. LedgerDimensionFacade:



















This class has multiple methods that cater to different requirements. We discuss a few in the following:

For instance the most common operation that is required is to merge a Ledger dimension and a Default dimension:



















We have two recIds of default and ledger and dimensions, and we want to merge the two dimensions value into one ledger dimension

















We have a combined ledger dimension now.

Also there is another class that holds a few more methods for DefaultDimension operations:


2. LedgerDimensionDefaultFacade: 










This class will help us to perform action over default dimension. Like Merge specific default dimensions into single default dimension, replace attribute value etc.

No comments:

Post a Comment

How to block inventory in ax D365 / AX7

In Dynamics AX if we want to block inventory for certain item, we have an out of the box form which caters this need and blocks the inventor...