sjacksonesriaustralia-com-au-esridist

Best Practise for scripting updating of hosted feature services?

Discussion created by sjacksonesriaustralia-com-au-esridist Employee on Feb 17, 2017
Latest reply on Feb 22, 2017 by Marvin_Perry-esristaff

A number of organisations will have an isolated internal ArcGIS Server deployment, and wish to setup an automated workflow for overwriting a subset of their datasets to hosted feature services within their ArcGIS Online Account, which then flow through to their ArcGIS Open Data site.

 

I have seen a number of scripts out there, but was wondering if there was a preferred approach or set of scripts that are recommended?  This would be a one-way push of data, and simply overwriting the service should suffice and I believe this does not change the ID of the item, therefore does not have any undesirable knock on effects with URLs to datasets changing in the Open Data site.

 

Ideally looking for some base scripts that can be easily adapted/re-usable for different organisations.

 

Semi-related, but would also like to know the pros and cons of publishing each layer as a separate hosted feature service versus grouping your layers into categories and publishing as one hosted feature service.

 

Some related links:

GitHub - arcpy/update-hosted-feature-service: Update and overwrite a hosted feature service on ArcGIS.com 

GitHub - Esri/overwrite-hosted-features: The Transportation 511 Script is used to keep the contents of a Feature Collect… 

GitHub - EsriUK/PythonAGOLTools: Demo scripts and productivity enhancements for ArcGIS Online using Python 

Accessing and creating content | ArcGIS for Developers 

Scripting administrative tasks with PortalPy—Portal for ArcGIS (10.5) | ArcGIS Enterprise 

Outcomes