Edit JSON Item urls/ids in portal

278
0
11-26-2019 02:19 PM
deleted-user-yC5VkbyXzrQR
Occasional Contributor

Hello, 

I'm trying to copy our WebMaps from AGOL to Portal. 

My current process is to use AGOL Assistant and Copy the map over to the new Portal. However, that works if all the content was in the same location, we moved all the reference data to a new location in Portal (data store) . So my steps to change the items in the new map in portal are as following in AGOL Assist: 

   1. Change the service URL's 

   2. Go into the JSON and change the ItemID. 

I have to do this for every WebMap and every layer in the webapp. 

Is there a way this can be done with python using the arcgis library or any other automated way? 

Thanks. 

Adam 

0 Replies