Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Jun 26, 2023 3:26:33 AM
Oct 15, 2021 12:34:34 AM
With Qlik Application Automation, you can get data out of Qlik Cloud and distributing it to different users in formatted Excel. The workflow can be automated by leveraging the connectors for Office 365, specifically Microsoft SharePoint and Microsoft Excel.
Here I share two example Qlik Application Automation workspaces that you can use and modify to suit your requirements.
Content:
Video:
Note - These instructions assume you have already created connections as required in Example 1.
This On-Demand Report Automation can be used across multiple apps and tables. Simply copy the extension object between apps & sheets, and update the Object ID (Measure 3) for each instance.
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.
Hi @MattGrayndler ,
Below the output of "Get Straight Table Data" block:
the Qlik Sense table has 218 rows.
For those having similar issue with the 'Add Rows To Table (Batch)' block seemingly not adding any of the rows, the APIs we are using for Excel seemingly does not like double quote (") and backslash characters (\).
I have a new version of these automations and am currently updating this documentation and will highlight this limitation.
Hi @MattGrayndler ,
Finally the issue has been fixed removing double quote and backslash characters.
Thanks for your collaboration.
Best Regards
HI @MattGrayndler ,
Thank you for your great work on this automation. It is a huge help.
One question I have is how it is possible to change the excel headers colors?
Currently the color is black with he white text and I would like to change it and could not find that option.
Can you help me please?
Thanks.
hi @MattGrayndler ,
This is great thank you. I have just tested and I have an issue returning the following function column from the straight table. =SubField(OSUser(),'=',-1).
on the table I have a 1 dimension and the function above as a measure. It works fine for me and sends a file with the dimension and my email address as the second column.
when other users run hit the button a file is generated but with my email address not theirs.
am a bit confused why the function is not evaluating for hte users?
Thanks
Hi @didierodayo ,
Application Automation does not run as the user who triggers the automation, so I wouldn't expect an Engine function like OSUser() to be useful here.
That is why in my example I have used an extension to request the user to provide their email address via the form function of the extension.
https://github.com/rileymd88/automation-trigger
To avoid using an extension you could load an island table with each user email, and ask users to select their email as part of the app selections prior to hitting the native Action Button to trigger the automation.
You could then use the 'List Current Selections' block to try and unpack the selected value but there is some complexity here. I hope to be able to update my documentation with an example like this soon.
thanks @MattGrayndler .
Yes I had to drop the email extension. in my use case we just need to drop into OneDrive without a notification. The file is then picked up by another process. The logged in user email is neccessory for the following process.
I will play around with loading the users as field option.
HI @MattGrayndler ,
I am just wondering if you missed my question about excel headers color.
I am sure it is something obvious but for some reason I can not figure out where to change it.
Currently the color is black with the white text and I would like to change it and could not find that option.
Can you help me please?
Thanks.
Hi @DenisSinai the formatting is controlled by Excel Table Styles, and while no table exists in the template, it uses the style last set.
To change this, create a table in your version of the template (cntrl+t) then change the table style. You can then delete the table, save your template - and convert the file to base64 used in the automation. Once the automation inserts a table, Excel will use that style you last used.