Is there a simple way to export the layer list from a web map (built with WAB) to a text file?
Hi,
You can loop through all of the webmaps in your arcgis online by using the following code:
web_maps = gis.content.search(query="", item_type="Web Map", max_items=10000) for item in web_maps: wm = WebMap(item)
Then use the rest of the code that you have been using! If you have any issues you can refer back to this code in github that I put together which searches through web maps for a particular web service https://github.com/joshsharpheward/gis-administration/blob/master/search_webmaps_for_services.py
Cheers,
Josh
@JoshuaSharp-Heward Thanks this is pretty good.sorry to bother you with this. Do you know how can I run this for my whole arcgis online webmaps? Instead of manually copy paste ItemId for each webmap.
Thanks again for your help
Yes, I have both of those. Any help is appreciated!! Thank you!
Do you have access to ArcGIS Pro or ArcGIS Notebook (in AGOL or enterprise)? If so this can be done using the ArcGIS API for Python pretty easily!
Is there a way to do this for all services at once? Thanks!
open the feature service in arcmap (in catalog you will see an option for feature services, then use arcpy to list the layers
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.