Get individual Ledger Dimension displayValue in d365 fo x++

 private DimensionDisplayValue getAttributeValueFromCombination(LedgerDimensionAccount _LedgerDimensionAccount,Name _attributeName)

{
    DimensionAttributeLevelValueAllView dimAttrLevelAll;
    DimensionAttribute                  dimAttribute;

 

    select DisplayValue from dimAttrLevelAll
    join dimAttribute
    where dimAttribute.RecId                    == dimAttrLevelAll.DimensionAttribute
&& dimAttrLevelAll.ValueCombinationRecId == _LedgerDimensionAccount
&& dimAttribute.Name                     == _attributeName;
    return dimAttrLevelAll.DisplayValue;
}

Comments

Popular posts from this blog

Get Current Worker data in d365 fo x++

Table Level Event Handler in d365 fo x++