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.