AnsweredAssumed Answered

Using Python to Overwrite a Feature Layer

Question asked by cynthiak on Dec 7, 2016
Latest reply on Jun 1, 2018 by AZiegler-esristaff

We are trying to automate data updates on our AGOL site.  I have a script that zips up 4 shapefiles and uploads this to a specific folder in our Content.  There is also a Feature Layer sitting in the folder created from the Shapefile data.  Manually, you can open the Feature Layer and hit the 'Overwrite' button to update it.  How do you program Python to achieve this same thing?  I also played around with having python publish a new Feature Layer after it uploads the shapefile, but haven't found any examples where the shapefile sitting in the directly has multiple shapefiles in it.  Hopefully, this all makes sense.  Any help would be appreciated.