Possible to find out where feature layers are being used in web applications?

12730
37
Jump to solution
02-09-2022 08:12 AM
ZachRobinson_SantaClaraCounty
New Contributor II

I am wondering if it is possible to easily find out which web applications in our ArcGIS Online organization are using a specific feature layer.

For example, if I delete a layer from our organization, I want to make sure I know which web maps and applications the deletion will affect. This can be difficult and tedious to search manually when an organization has many web maps and applications. 

37 Replies
Katie_Clark
MVP Regular Contributor

Wow, thank you for your contributions, @lzk222 !! 🙂

Best,
Katie


“The goal is not simply to ‘work hard, play hard.’ The goal is to make our work and our play indistinguishable.”
- Simon Sinek
TobyStewart2
New Contributor II

That looks amazing @lzk222 

I am trying to run it as a script in an ArcPro toolbox similar to how @Katie_Clark had set it up in her previous post. It runs without errors but there is no output at the end. Im not very good with scripting so am unsure what Im missing.

Thanks again

TobyStewart2_0-1699848175437.png

 

0 Kudos
lzk222
by
New Contributor III

Hi @TobyStewart2 , I am not that familiar with running scripts from the Toolbox. Because the script will return hyperlinks, it is probably best to run it in Jupyter Notebooks since this is browser based. Here's a video on how to get that started: Installing Jupyter Notebooks.

MichaelRobb2
New Contributor II

Hi,

 

This sounds like an ideal solution for us as we have a tidy up of our AGOL resources.  Having forgotten about so much work we've done in the past, it is so difficult to ascertain what web maps, applications etc reference what shapefiles, feature layers and so on.  

Can I ask where the best place to actually run this Python script is i.e Python Notebook within ArcPro?  What form should the 'your-portal-url' be in, should it be "https://<organisation>.maps.arcgis/com/" ?

I've tried running it in a Notebook and after a fair while just get a connection error below.  It is possibly a firewall issue, it has been known!

MichaelRobb2_1-1699892489874.png

Many thanks,

Mike

 

0 Kudos
lzk222
by
New Contributor III

Hi @MichaelRobb2 , 

The best place to run the script is in Jupyter Notebooks

The portal-url should look something like this:

https://osit.maps.arcgis.com/apps/mapviewer/index.html?webmap=


You can find it from any webmap in your organization.

lzk222_0-1700334265329.png

Please try running it from here. If you're still getting errors let me know, though what you've posted appears to be firewall related.

MichaelRobb2
New Contributor II

Many thanks.  I ran the Python script in Jupyter notebooks from home and it worked, so must be an organisational firewall thing indeed.  It's not the first time I've had problems!  

0 Kudos
Jesse_Albers
New Contributor

@lzk222Thank you for your post. I have noticed a discrepancy when searching for a layer that should appear in a web application. Despite the layer being present in the web map when using this Python tool, it does not appear in the web application that uses the same web map. However, the same layer appears in another web map and web application that uses that web map. Any clue why this would happen? I can post a screenshot if that would help.

0 Kudos
lzk222
by
New Contributor III

Hi @Jesse_Albers , sorry for the slow response.  A screenshot would be helpful. 

0 Kudos