Hi,
I was looking to define an attribute list using ArcGIS API for Python. I would think its a function tied to the Feature_Layer Object, but I cant seem to find it. The furthest i get is......
from arcgis.features import FeatureLayer
layer_url = 'https://servername.arcgis.com/OrrtI/arcgis/rest/services/TreeWorks/FeatureServer/0'
layer = FeatureLayer(layer_url)
# Do a loop through all the fields in the feature layer
for f in layer.properties.fields:
print(f['name'])
This will get me to the feature layer field names but not sure where to go from there.