Scan for Retired Operations Views in Your Org

10-24-2019 07:46 AM
Esri Contributor
4 0 595

It was recently announced that Operations Views created using the Operations Dashboard ArcGIS app for Windows will no longer be supported after December 2019. These views must be manually rebuilt as a newer, more powerful Operations Dashboard item before that deadline. Using the ArcGIS API for Python, you can quickly scan your entire organization for outdated Operations Views, and create a migration plan.

If you are an ArcGIS Online user with operation view items in your organization, we have an important announcement:

The Operations Dashboard for ArcGIS app for Windows that was used to create operation views was retired on January 1, and with the March 2019 release of ArcGIS Online, these items were marked as retired in your organization’s content. For more information, see this blog. Up to this point, users have still been able to view these retired items. However, with the upcoming December 2019 release of ArcGIS Online, operation view items will no longer be viewable. Therefore, we highly encourage users who are still using operation view items to rebuild them as dashboard items as soon as possible using the Operations Dashboard web app. To get started with the app, visit our help documentation.

The python script used to locate these items is fairly simple. It can be run in Jupyter Notebook, which is automatically installed with ArcGIS Pro or as an addition to ArcGIS Enterprise. More information can be found on the Esri developer page. For best results, run the script using your administrator AGOL or Portal credentialsthis will locate all items in the entire organization, rather than just your personal content.

#Import the library

from arcgis.gis import GIS
from arcgis.gis import ContentManager
#Connect to the organization with the AGOL username and password
source = GIS("https://<yourOrg>", ",adminUsername", ",adminPassword")
#get the items items

#by default, this scan caps out at 10 records

#max_items has been set to the cap of 9999 results
items ="", item_type="Operations View",max_items=9999)

#return the list of items

If you encounter any issues, reach out on GeoNet!

About the Author
Senior Solution Engineer at Esri | Health & Human Services