Select to view content in your preferred language

Automated Way to Update All Offline Managed Areas

504
2
11-26-2024 01:42 AM
Labels (3)
tiztrain
Frequent Contributor

Hey all,

I am planning to overwrite a service that is used in a lot of field maps with offline managed areas. Instead of going through each map and clicking the update button for the offline area, is there a way this could be automated so that any map with any offline area updates?

0 Kudos
2 Replies
ChristopherCounsell
MVP Frequent Contributor

This will happen if you have scheduled map updates on the offline areas:

https://doc.arcgis.com/en/arcgis-online/manage-data/take-maps-offline.htm#ESRI_SECTION1_8C6055E984D3...

If you have not scheduled updates or want to do it out of cycle I would recommend using python and the offlinemMapAreaManager update()

https://developers.arcgis.com/python/latest/guide/managing-offline-map-areas/#updating-offline-areas

You could write the python script to get each web map item and then attempt to update the offline areas, if they exist.

tiztrain
Frequent Contributor

Ok great. This was exactly what I was looking for