Looking for guidance on this scenario. I have a template application lets call it "Profile" that will be installed in individual workspaces. This app contains references to a central workspace. A subset of the data contained within the "Profile" app is input into the central workspace using references either by calculations or workflows depending on whether or not I want raw text data in the central app or to update a similiar category in the central app with data from the "Profile" app for the purpose of being able to sort in table view in the central app.
Think of the "Profile" apps and associated workspace as a personal workspace and the central workspace as the aggregated view into a table from all of the individual personal workspaces.
I have this structure working well in prototype, but after launching what happens when I want to update the "Profile" app to collect new data and create new flows to send this data to the central app. I've theorized that I could ask people to simply delete the old app, install the new app, and relink to central app, but this seems tedious to the user, so I was hoping to programmatically update the app.
I can trigger a workflow via a hook that will then read through all of the individual spaces and do that updates, but what would be the best way? Should I simply loop through all fields of the existing app in each workspace and compare and contrast against a template app and if the fields are difference update each field individually, if new fields exists then add a new field, and if fields are deleted, delete that field, also accounting for any other updates to workflows etc.
This also seems tedious, is there a broader function/api call that would enable me to simply update an app based on a template app? Could I use something like Update App v2? (https://developers.podio.com/doc/applications/update-app-v2-144091799). Or perhaps there is a simpler way I'm overlooking?
Thanks for any guidance...
Please sign in to leave a comment.