I'm not being able of copying an app from the engine API. I need to be able to override an App content (sheets, variables, etc) with the content of a different App.
That is, if I have app A, whose id is xxx-xxx-xxx and app B, whose id is yyy-yyy-yyy, I need to be able to pass variables and sheets from B to A, but keeping A's id xxx-xxx-xxx and keeping the data previously load.
I don't know what ID you are using but in the example above the ID "mXgZa" is most likely wrong. It looks like a client generated ID (they are short), but what you need is the QRS ID, It might look something like this:
That is not supposed to be the id of an app... what goes there are the qid's of the objects in an app..sheets, variables, etc. The id's of the empty app already created is the 'target app' and the app to be copied is the 'src app'.
My understanding so far is that they are the qInfos associated with the app being copied over. If this is an empty string, it defaults to copying everything over.
I could be wrong as I am new to the qlik engine api, but i have made other calls successfully from node. I don't know if I am doing it wrong or missing something I need. I get the same error on ReplaceAppWithID call.
There are 3 IDs in the example. The first two are apps, and works, but the third one should be a sheet. In the AMC you find sheets together with stories under App objects. This is the page the screen dump shows, though I have made changes in what columns are shown and filtered to only show sheets.
If you feel stuck you could always try to do the same operation in the hub and look at the messages on the web socket.