Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
yosuke-coupa
Partner - Contributor III
Partner - Contributor III

Duplicating an App Across Spaces Without Data

We have a unique OEM use case where we would like to duplicate an App from one Shared Space to another Shared Space, but without any data.  So, essentially there are two parts to this question:

1. Can an App be duplicated across Spaces?

2. Can an App be duplicated without the loaded data?

From what I've explored, both through the UI and APIs, neither is currently possible.  Can someone please confirm so I can be thorough?

Labels (3)
2 Solutions

Accepted Solutions
Anil_Babu_Samineni

@yosuke-coupa 

1. This is not really recommended as it may conflict with same app name thought different App ID's. If you force, You can still do that.

2. I have 2 parts,

    2.1) If you have app already and you don't want any data (Please export with out app and then import and publish it)

    2.2) If you have an app from #1, You can do the same but don't schedule any tasks (With this the data won't get update here).

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

Dave_Channon
Employee
Employee

Hi @yosuke-coupa 

No issue with the same name of an app in multiple spaces, and you can duplicate an app by copying it. See https://qlik.dev/apis/rest/apps/#%23%2Fentries%2Fv1%2Fapps%2F-appId%2Fcopy-post and specifying the new spaceId in the body of the request. If you do this in the UI, it'll create the copy in the same space and change the name of the app.

On number 2, per @Anil_Babu_Samineni this isn't possible with the REST APIs. You can only duplicate with data; or export without data and re-import using the usual APIs. Or remove the load script, reload the app, then add the load script again; unbuild and rebuild the app from definition, etc. There's no direct path today.

View solution in original post

4 Replies
Anil_Babu_Samineni

@yosuke-coupa 

1. This is not really recommended as it may conflict with same app name thought different App ID's. If you force, You can still do that.

2. I have 2 parts,

    2.1) If you have app already and you don't want any data (Please export with out app and then import and publish it)

    2.2) If you have an app from #1, You can do the same but don't schedule any tasks (With this the data won't get update here).

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Dave_Channon
Employee
Employee

Hi @yosuke-coupa 

No issue with the same name of an app in multiple spaces, and you can duplicate an app by copying it. See https://qlik.dev/apis/rest/apps/#%23%2Fentries%2Fv1%2Fapps%2F-appId%2Fcopy-post and specifying the new spaceId in the body of the request. If you do this in the UI, it'll create the copy in the same space and change the name of the app.

On number 2, per @Anil_Babu_Samineni this isn't possible with the REST APIs. You can only duplicate with data; or export without data and re-import using the usual APIs. Or remove the load script, reload the app, then add the load script again; unbuild and rebuild the app from definition, etc. There's no direct path today.

yosuke-coupa
Partner - Contributor III
Partner - Contributor III
Author

@Dave_Channon Thanks for the info.  I was originally getting a 404 when using the endpoint to copy an App across Spaces, but I realized that the M2M OAuth client used did not have the appropriate permission in the target Space.  Once I correctly set the permission in the Space I was able to copy the App across Spaces.  

 

Dave_Channon
Employee
Employee

Awesome, thanks @yosuke-coupa for the update