Getting layer ID of table in dynamic map service

Discussion created by rmartin4 on Sep 9, 2011
Latest reply on Oct 28, 2011 by njarecha-esristaff

I am trying to retrieve the layer ID of a non-spatial table in a dynamic map service. At the start of my app I am creating a dictionary of layer names and IDs by looping over AGSMapServiceLayerInfo objects. The table, however, is not included. (I imagine this is because it has no graphic component in the map view.)  Is there any built-in property or method I could use for this?

Thanks in advance,