Import export app json ui

Hello, is it possible to export the app json ui and directly insert this json into somewhere where the retool will auto synchornize this app once started ? Insert into retool database ? Or somewhere.

I know it can be done using manual import. Any other way ?

Hello @peanutbutter7203!

Could you provide me with more details on the 'auto synchronize' that you want to do with this Retool app?

You can export and app and import it into a new app, also you can store the app's JSON as a string and insert this into a database to access for someone else to take the JSON and clone the app.

Resources and permissions may need to be manually configured for cloned apps.

how does one access the app's JSON in code in retool?

Hello @samthing!

Just to clarify, apps are exportable and clone-able via their JSON export which can be created by clicking the three dots in the top right of the editor and then clicking "Export to JSON".

This JSON is not accessible in code in a Retool app, and there isn't much that can be done with manipulating this JSON anyway. But is used for sharing apps to others, as you can select 'From JSON' under the app create tab.

When tried this, we are getting an empty json file, this was working fine before, what would the issues? We are using self-hosted and we moved it to 3.75.3 yesterday from when we are facing this issue.

thanks for the reply!

also you can store the app's JSON as a string and insert this into a database to access for someone else to take the JSON and clone the app.

I mistook this to mean that accessing the App JSON as a string via code was possible.

This JSON is not accessible in code in a Retool app, and there isn't much that can be done with manipulating this JSON anyway.

My intention wasn't to modify it but rather to be able to export it using a script... For some more context, we are using a multi-instance self-deployment and without the enterprise edition, it requires manual exporting of the JSON... I don't think Retool would ever allow accessing app JSON in code, although I would like to make the request ^^

1 Like

@samthing Ahhh I see, thank you for clarifying!

It seems that currently the JSON must be manually created, I can look into making a feature request for getting this JSON file in app so that it can be exported via a script or workflow.

Although the use of this JSON to create a new app would still need to be manually done :sweat_smile: unless we were able to build out a way to programmatically in app receive and create an app with the JSON while still in an app :face_with_spiral_eyes: and then we would be getting into app building within an app which would take a fairly long time to build out :sweat:

Have you looked into using our new multi-page app feature? It is much easier to pass data between apps and to have apps break up business logic.

@Jeevan_Reddy_Mekala I am sorry to hear that the JSON export isn't working!

That is very odd, if you could make a separate forum post with a screen recording of the behavior we can better help to figure out what is going on and to make a bug report!