Select to view content in your preferred language

Copy web map application and update web map

521
2
10-12-2023 04:42 AM
Labels (1)
Sfortunatamente
New Contributor III

Hi,

I need to copy a web map application created using Web App Builder and update a web map based on which the app was created. As far as I know the second step has to be done with REST API but making a copy of a web app is more crucial for me at the time.

I tried the same approach which I use for web maps:

newWebMapProperties = {'title': title,
'type': 'Web Map',
'tags': tags
'text': json.dumps(existingWebMapJsonData)}

Which properties do I need to put for web apps in order to get a copy which can be opened and edited in Web App Builder?

 

 

 

0 Kudos
2 Replies
David_McRitchie
Esri Contributor

Hey,

 

For copying Web Apps I would recommend using the Clone_Items() method. The documentation here provides some useful code samples for doing this.

Let me know if you hit any issues with this.

Many thanks,

David

Esri UK -Technical Support Analyst
0 Kudos
Sfortunatamente
New Contributor III

Hi, thanks for the tip but clone seems to be dedicated for making a copy from one Portal to another one but what I want to do is to copy with the same Portal instance.

0 Kudos