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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details

How to send an Excel report as an attachment using Qlik Application Automation

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

How to send an Excel report as an attachment using Qlik Application Automation

Last Update:

Feb 15, 2023 4:50:14 AM

Updated By:

Qlik-Lorena

Created date:

Feb 15, 2023 11:20:33 PM

Attachments

Environment

  • Qlik Sense Enterprise SaaS
  • Qlik Application Automation

This article describes how an Excel file can be sent as an attachment by using the Send Mail block in Qlik Application Automation.

Automation Structure

The creation of an Excel report from a Qlik Sense straight table is explained in the first part of this article.

Let's walk through the blocks used in the automation workflow to send the Excel file as an attachment using the "Send Mail" block.

  1. Open the Excel file saved in Microsoft SharePoint using the "Open File on Microsoft SharePoint" block.

    open-file-on-microsoft-sharepoint.png
  2. Use the "Send Mail" block from Mail Connector to send the Excel file as an attachment via email.

    send-mail-excel-report.png

A JSON file containing the above automation is attached to this article.

Please follow the steps provided in the How to import automation from a JSON file article to import the automation.

Related Content 

Comments
Carin_89
Contributor
Contributor

Hello everyone, 

I have a question @Sonja_Bauernfeind . 

Can I send the generated report through automation after my app reloads?

 

Thanks

ttibrandsqliksense
Contributor II
Contributor II

@Carin_89  - you can use webhook for this requirement

webhook.png

poojask123
Partner - Creator
Partner - Creator

Hi,

 I want to pass a value like "*- 1000 -* to a field Column1 through the "Select Field Value" block. Please help me on how this can be achieved.

Thanks

PetyaAtanasova
Partner - Contributor
Partner - Contributor

@poojask123You have a couple of options depending on whether you need all values selected at the same time or in a loop.
1. You can do that if you create a loop. Start with a block of List Field Values. When within this loop place a Condition container where you specify that the selected value should consist of this string - 1000 -, then on the Yes of this Condition you will place your Select Field Value Block. While this can be a bit slower, it enables you to select individual values, one at a time. 

2. It could also happen if you start with the approach above, but instead of Select Field Value within the Condition Block, you will place a variable that appeends all values that match the *- 1000 -* criteria into this variable. Creating a comma (or anything else) separaterd list that later you can use in a Select Field Value. Custom Code can take care of any duplicates, if there are any. This enables you to select all values at once. 

Here is the python code i use to deduplicate lists:

import json

raw_input = inputs.get("YourVariableName")

# Handle both string and list inputs
if isinstance(raw_input, str):
try:
name_list = json.loads(raw_input)
except json.JSONDecodeError:
name_list = []
elif isinstance(raw_input, list):
name_list = raw_input
else:
name_list = []

# Deduplicate
unique_names = list(set(name_list))

print(json.dumps(unique_names))

Please, let me know how it goes! 

 

 

mayuringale25
Partner - Creator
Partner - Creator

Hi Team,

I want to remove that Lead with data image completely. is there any way to do it

Contributors
Version history
Last update:
‎2023-02-15 04:50 AM
Updated by: