Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Everyone,
I'm importing a new application into a SaaS tenant using Qlik SDK (Post / Put)
qlik.apps.import_app(data=f)
published_app = application.publish({"spaceId": "6657348d053e38f4f18fedeb"})
republished_app = application.set_publish({"targetId": "90276b41-02fb-4a19-b2c0-0c25d3c0da37"})
published_app = application.publish({"spaceId": "6657348d053e38f4f18fedeb","originAppId":"90276b41-02fb-4a19-b2c0-0c25d3c0da37","moveApp": True})
I'm not sure what the exact command would be in the SDK.
however from the Rest API's you would be doing a PUT
https://qlik.dev/apis/rest/apps/#%23%2Fentries%2Fv1%2Fapps%2F-appId%2Fpublish-put
Republishes a published app to a managed space,
However because you have imported a new App, that App ID is not associated with the published copy, so when making the api call, in the Request Body you need to specify checkOriginAppId=false
We do have a few examples of this flow, take a look at https://github.com/qlik-oss/qlik-cloud-examples/blob/665aff509acf5217366efa396c926bbd6abad11a/qlik.d... and let us know if that helps?
I'm not sure what the exact command would be in the SDK.
however from the Rest API's you would be doing a PUT
https://qlik.dev/apis/rest/apps/#%23%2Fentries%2Fv1%2Fapps%2F-appId%2Fpublish-put
Republishes a published app to a managed space,
However because you have imported a new App, that App ID is not associated with the published copy, so when making the api call, in the Request Body you need to specify checkOriginAppId=false
Thanks Marc it worked. I'd seen this flag but not used it (or used it properly)
republished_app = application.set_publish({"targetId": "90276b41-02fb-4a19-b2c0-0c25d3c0da37","checkOriginAppId":False})
I've been trying to use the SDK when I can although I'm not 100% convinced with it... it does sometimes give additional help (not every time)
The code above would be a PUT... So (for others) targetId is the application id currently published and the flag means overwrite (no need for a space id)
We do have a few examples of this flow, take a look at https://github.com/qlik-oss/qlik-cloud-examples/blob/665aff509acf5217366efa396c926bbd6abad11a/qlik.d... and let us know if that helps?
Thanks Dave! Just read through them and they do help! 🙂