This script works great to download AGOL features and attachments. Thank you. However, the same code doesn't work on related tables and attachments.
Python script to pull hosted features with attachments into a local file geodatabase. See ReadMe below. · GitHub
The data URLs are,
http://services.arcgis.com/xyz123456orgid/arcgis/rest/services/myFeatures/FeatureServer/0 (main feature class)
http://services.arcgis.com/xyz123456orgid/arcgis/rest/services/myFeatures/FeatureServer/1 (related table 1)
http://services.arcgis.com/xyz123456orgid/arcgis/rest/services/myFeatures/FeatureServer/2 (related table 2)
It doesn't work by changing
crUrl = 'http://...FeatureServer/1/..' or
crValues={... 'layers': '1', ...}
The original Code as,
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registrieren Sie ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.