How to get CubeAttribute ID according to the CubeAttribute Name using AMO method?


  • Hi

    I want to get the CubeAttribute  ID according to the CubeAttribute  Name using AMO method.

    and I tried to use below scripts to get the CubeAttribute  ID

    string DimensionID = cb.Dimensions.FindByName(DimensionName).ToString();
     CubeDimension dim = cb.Dimensions[DimensionID];

    string Attribute_ID = dim.Attributes.FindByName(DimensionAttributeName).ToString();

    But seems the CubeAttribute   don't contain the function FindByName,  So how can i get the ID value?

    Any idea about this, thanks advance.

    Thursday, June 26, 2014 8:46 AM

All replies