Hey Safers ... Long time listener, first time caller. Go easy!
See below, I'm iterating over rows in a CSV, using these to build ArcGIS Map Server URLs, pulling features from the services, and writing them out to GDB (eventually SDE) feature classes.
I use the Map Server layer numbers to build my URLs, in turn these layer numbers are assigned to my schema and feature_types, and eventually become the feature class names in my GDB.
Has anyone got any pointers on how I can use the more friendly layer_name values to name my feature classes?
Thanks in advance! Sam