Select to view content in your preferred language

list all services in a web map

1696
2
06-21-2018 02:44 PM
HunterCarver
Regular Contributor

Does anyone know a way to extract a list of all services in a web map?  I have a number of web maps and am continuously needing to retire old layers from them and replace with new layers.  It would be very helpful to be able to extract lists from all web maps and send to a spreadsheet so I would know what maps if any a layer is active in. 

Of course this info is visible in the details of the web maps but this would be very time consuming to check each one.  Is there a way to pull the details with a python script or something into an Excel sheet so I can see all maps consuming a service at once?

ArcGIS 10.3.1, with Federated Portal

Thank You,

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Hunter,

   You would need to develop some code to do this, there is nothing otb for what you want.

esri/arcgis/utils | API Reference | ArcGIS API for JavaScript 3.24 

//df8bcc10430f48878b01c96e907a1fc3 is the webmap id
arcgisUtils.createMap("df8bcc10430f48878b01c96e907a1fc3", "map").then(function(response){
  var layersResult = arcgisUtils.getLayerList(response);
  console.info(layersResult);
});
AndresCastillo
MVP Regular Contributor

My teammate has created a python script to accomplish this.

I will ask for permission to share.

An alternative is to pay GeoJobe to allow you to search dependecies in a web map drilling downwards, and upwards.

The next step after your question is answered is to:

https://community.esri.com/thread/214397-view-all-web-maps-being-consumed-by-all-web-mapping-applica...