AX / D365FO – MERGING A LEDGER DIMENSION WITH A DEFAULT DIMENSION in AX2012 – X++

This example shows how to merge a ledger dimension coming from one place with a default dimension from another place. This could be the ledger dimension in a ledger journal line we need combined with a default dimension from customer. Follow this code to reach the goal : myCombinedDimension = DimensionDefaultingService::ServiceCreateLedgerDimension(ledgerJournalTrans.LedgerDimension, custTable.DefaultDimension));

AX – D365FO – Get individual dimensions value from Ledger Dimension in X++

In this example method we pass 2 parameters : Ledger dimension record An Attribute named "BusinessUnit". The attribute of which we want to retrieve the value This methods returns the sigle dimension Attribute value static DimensionDisplayValue getAttributeValueFromCombination( DimensionAttributeValueCombination _combination, Name _attributeName = 'BusinessUnit') { DimensionAttributeLevelValueView valueView; DimensionAttribute attribute = DimensionAttribute::findByName(_attributeName); //Retrive attribute record by Name … Continue reading AX – D365FO – Get individual dimensions value from Ledger Dimension in X++

D365FFO – AX – X++ – Replace a Financial Dimension in Default Dimensions [AX 2012]

In my earlier post, I had explained how we can set financial dimensions. In this post, I will provide a job by which we can replace one attribute value in a combination of financial dimensions. The class that we can use is the DimensionDefaultingService and method to use is “serviceReplaceAttributeValue”. For this purpose, we will use … Continue reading D365FFO – AX – X++ – Replace a Financial Dimension in Default Dimensions [AX 2012]