Select to view content in your preferred language

Upload / import an experience to ArcGIS online

1046
2
03-27-2022 04:53 AM
MarceloRosensaft
Regular Contributor

Hello,

I have an experience created in the developer edition (v. 1.5) of my enterprise portal. I've downloaded it and would like to upload it to my online account. What would be the way?

Thank you in advance,

Marcelo

0 Kudos
2 Replies
QuantitativeFuturist
Frequent Contributor

Lol good luck with that. You can try using ArcGIS Assistant but understand it's not officially supported and you're trying to go from v1.5 to I think v.1.8 so it may not be possible anyway

0 Kudos
DirkAtWSP
New Contributor

There is a method in the Python API that will get you there: https://developers.arcgis.com/python/latest/api-reference/arcgis.apps.expbuilder.html#webexperience (upload())

Here is some code that will get you going:

from arcgis.apps.expbuilder import WebExperience 
from arcgis.gis import GIS

print("STARTING")
gis = GIS("", "", "")
# Point to the config.json from your Dev Edition download folder
# (or, in API v2.4.0+, the path to the project folder itself)
local_exp = WebExperience(gis=gis, path=r"C:\Path\to\server\public\apps\0") #\config.json#")

new_item = local_exp.upload(
    gis=gis,
    publish=True,
    title="My Uploaded Experience",
    # widget_mapping={"my-widget":"my-widget"},
    auto_remap=True        # auto-matches datasources by name/type in target org
)
print("ALL DONE. BOOM!")
 
0 Kudos