How can i write all dimensions of customer? I can use this code but it result just Department = 022.
CustTable custTable = CustTable::find("10112");
DimensionAttributeValueSetStorage dimStorage;
Counter i;
dimStorage = DimensionAttributeValueSetStorage::find(custTable.DefaultDimension);
for (i=1 ; i<= dimStorage.elements() ; i++)
{
info(strFmt("%1 = %2", DimensionAttribute::find(dimStorage.getAttributeByIndex(i)).Name,
dimStorage.getDisplayValueByIndex(i)));
But i want if dimension is empty result is empty. For the example below result should be like this;
BusinessUnit =
Department = 022
Project =
ServiceLine =
How can i do this?