Hello,
In my work I spend a lot of time uploading maps to AGOL, each time I have to manually go through each layer to change the Display field as it defaults to "Shape_Length" which is an attribute of ever polygon or line feature class. For some reason AGOL wont allow a layer to upload with "Shape_Length" as the Display field and I have to go in a change it to OBJECTID or another field.
I'm trying to write a phython script to automate the Layer Properties all layers in a map. Specifically I need to update the Display field to OBJECTID or another field name.
Hi @SkyeVandenberg,
Have you got an example (screenshot) of where this Display Field is showing up in an AGOL Map or Feature Service so I can see what you want to alter?
Cheers,
Glen
This is a little dated but on-topic
https://community.esri.com/t5/python-questions/change-display-field-expression-using-arcpy/td-p/1028...