Skip to main content

How to store cycled reports in cloud using Qlik Application Automation

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

How to store cycled reports in cloud using Qlik Application Automation

Last Update:

Sep 20, 2023 6:34:04 AM

Updated By:

Sonja_Bauernfeind

Created date:

Apr 4, 2022 9:25:14 AM

Attachments

This article gives an overview of storing reports in the cloud use case. It also explains a basic example of a template configured for this scenario.

An automation is attached, which can be imported in your Qlik Cloud Tenant. See How to import and export automations.

For this example, we will use the Qlik Reporting connector and Microsoft SharePoint as the cloud storage tool.

For this approach, you will need a Qlik Sense app configured in your tenant that has public sheets available, a field with unique values for which the reports will be generated, and a Microsoft SharePoint destination path to store your reports.

To support this use case, we created a basic template featured below. This template example is also available as an attachment.

Copy file on Microsoft SharePoint.png

This template will loop over all unique field values in the specified app. For each value, it will generate a report of all public sheets with a selection based on the specific value. Each generated report will then be saved as a PDF file in SharePoint.

Of course, this is just a basic implementation. This template can be upgraded to suit other scenarios. Let's go over a few examples:

  • You can select a different destination connector for the cloud storage in the Copy File block;
  • You can replace the could storage block with the Send Mail block from the Mail connector to send the report as an attachment. 
  • You can send an alert to a messaging system such as Microsoft Teams or Slack.
  • You can change the sheets mode to custom in the Create Report block and use the Add sheet to report block to further customize your reports.

 

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.

Labels (2)
Comments
samp1
Contributor II
Contributor II

I am getting the below error when I use this template for my SharePoint destination requirement.

resulted in a `400 Bad Request` response: {"error":{"code":"BadRequest","message":"Url specified is invalid.","innerError":{"date":"2022-04-12T15:03:53","request-id":"d5e309e5-3e43-4295-8269-f951a5896e9b","client-request-id":"d5e309e5-3e43-4295-8269-f951a5896e9b"}}}

Here I created a folder in share point and gave the url under 'Destination Path' by keeping Drive Id and Site Id blank, in connection I gave default permission. any help with this error?

 

 

Ionut_Dumitrascu

Hi @samp1 ,

In order to copy the report in a SharePoint folder that you configured, please use the following: 

/destination folder/{$.generateReport.path}

Ionut_Dumitrascu_0-1649834224712.png

 

samp1
Contributor II
Contributor II

Hi @Ionut_Dumitrascu ,

I tried I am getting below error msg.

samp1_0-1649872588344.png

 

Ionut_Dumitrascu

Hi @samp1 ,

Either Drive Id or Site Id is required, providing both will use Drive Id.

paulcalvet
Partner - Specialist
Partner - Specialist

Hi, can you give an example of what is expected in Site Id and Drive id ?

How can I find them ?

Regards,

Ken_T
Specialist
Specialist

would it be possible to give some more documentation of how the steps are configured and perhaps add to the official docs which do not even include a list of the parameters, much less, how to use them....

Ken_T
Specialist
Specialist

for other people who struggled finding this - the JSON file attached to this post, can be IMPORTED into a blank new automation, via right click > upload workspace. 

Version history
Last update:
‎2023-09-20 06:34 AM
Updated by: