Hello,
I have below code to get Financial Dimension values from generaljournalAccountrEntry(LedgerDimensionField). I need Financial dimension description or name like below in picture and below is my code its getting only financial dimension segment CostCenter. But I need Full name/description of CostCenter.
static void Job32(Args _args)
{
DimensionAttributeLevelValueAllView dimAttrLevelAll;
DimensionAttribute dimAttribute;
DimensionAttributeValue dimAttributeValue;
DimensionFinancialTag dimensionfinancialtag;
refrecid financialTagCategory;
;
select DisplayValue from dimAttrLevelAll
join dimAttribute
where dimAttribute.RecId == dimAttrLevelAll.DimensionAttribute
&& dimAttrLevelAll.ValueCombinationRecId == 5640344835 //generalJournalAccountEntry.LedgerDimension
&& dimAttribute.Name == "CostCenter";
info(strFmt("CostCenter: %1", dimAttrLevelAll.DisplayValue));
// info(strFmt("CostCenter Name/Desc: %1", dimAttribute.dimensionName()));
}