Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.

How to export Qlik Sense Apps from source to a target shared space using Qlik Application Automation

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
AfeefaTk
Support
Support

How to export Qlik Sense Apps from source to a target shared space using Qlik Application Automation

Last Update:

May 17, 2023 5:08:35 AM

Updated By:

DanielZandersQlik

Created date:

Apr 17, 2023 12:48:29 AM

Attachments

This article gives an overview of exporting the Qlik Sense apps from the source to a target shared space for backup purposes using Qlik Application Automation.

It explains a basic example of a template configured in Qlik Application Automation for this scenario.

You can make use of the template which is available in the template picker. You can find it by navigating to Add new -> New automation -> Search templates and searching for 'Export an app to a shared space as a backup' in the search bar and clicking on the Use template option in order to use it in the automation.

You will find a version of this automation attached to this article: "Export-app-to-shared-space.json". More information on importing automations can be found here.

 

Full Automation

backup-app-shared-space.png

backup-app-shared-space1.png

Variables used in the template:
  1. SourceSpaceID: The variable used to define source space ID. Please provide a shared space ID since copying an app from managed space is not permitted.
  2. TargetSpaceID: The variable used to define target space ID. Please provide a shared space ID since copying an app to managed space is not permitted.
  3. AppCount: The variable is used to get the count of apps exported to the target space successfully. Initially set this variable to 0.
Automation structure:
  1. Add the 'List Apps' block to get all the existing apps in the target shared space. Configure it to use the TargetSpaceID variable as the Space ID.
  2. Add the 'Get Space' block to fetch the details of the source shared space. Configure it to use the SourceSpaceID variable as the Space ID.
  3. Add the 'List Apps' block to get all the existing apps in the source shared space. Configure it to use the SourceSpaceID variable as the Space ID.
  4. Add the 'Filter List' block to get the apps that already exist in the target shared space.
  5. Add the 'Condition' block to check if there are any apps from the source shared space that already exist in the target shared space. 
    1. If the condition block outcome evaluates to true:
      • Add the 'Delete App' block to remove the previous version of the source app from the target shared space.
      • Add the 'Copy App' block to copy the app from the source shared space to the target shared space.
      • Add the 'Condition' block to check if the app from the source shared space was successfully exported to the target shared space.
      • If yes, Add 1 to the 'AppCount' variable during each iteration. This variable will provide the total number of apps that have been backed up to the target shared space.
    2. If the condition block outcome evaluates to false:
      • Add the 'Copy App' block to copy the app from the source shared space to the target shared space.
      • Add the 'Condition' block to check if the app from the source shared space was successfully exported to the target shared space.
      • If yes, Add 1 to the 'AppCount' variable during each iteration. This variable will provide the total number of apps that have been backed up to the target shared space.
  6. Add the 'Condition' block to check if there are any apps that were exported to the target shared space successfully.
  7. If yes, add an 'Update Run Title' block to specify the number of apps that have been exported to the target shared space successfully. The job title is visible when looking at the automation history and My Automation Runs Overview. For more info: Update run title block | Qlik Cloud Help 

The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.

Related Content

Export Qlik Sense Apps to GitHub

 

Environment

Qlik Cloud 
Qlik Application Automation 

Labels (2)
Version history
Last update:
‎2023-05-17 05:08 AM
Updated by: