Select to view content in your preferred language

Copying JSON from one ExB to another?

165
2
2 weeks ago
DaveK
by
Occasional Contributor

Hello, 

My org has an ExB application in production that needs to be updated. A user made a new application with the updates that need to go into the production application. Instead of rebuilding those edits into the production app is it possible to overwrite the JSON (via AGO assistant) of the production app with JSON from the second app that was created? If not, is there another way to overwrite an ExB app with another? We're looking for any way to copy those edits from another ExB app into our production app. Any help is appreciated.

Thanks.  

2 Replies
DanJiang
Esri Contributor

Hi @DaveK , I am not very familiar with AGO assistant but I found a function that allows view and editing online item json file. Perhaps you can try use the updated json to overwrite the online item json. Be careful to make sure the ExB version is compatible.

DanJiang_1-1718699768932.png

 

 

 

 

0 Kudos
SerjStol
Occasional Contributor

We had similar requirement. However, when I tried to use AGO assistant, the JSON which gets overwritten is only for the Published ExB App, which works fine. BUT, if you then want to open that production ExB app in the ExB editor, you will still have the old JSON in there. This workflow would work if you are happy that you can only edit the app in your Test version and then using AGO assistant to move that across.

Proper way would be to use Python API to Clone ExB app which seems to be a new capability within the API: Working with Web Experiences in the Python API | ArcGIS API for Python

I personally did not have time test this so I can't comment on how well this works.

0 Kudos