<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>article Setting Up Qlik Sense to Send Email Notifications on Reload Task Failure in Member Articles</title>
    <link>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/ta-p/1753023</link>
    <description>&lt;P&gt;&lt;FONT size="4"&gt;I spent a bunch of time on and off trying to figure how to generate an email alert when a reload fails. It's something I and I'm sure many others wish was built-in and worked out-of-the-box, but it's actually somewhat possible. There are some restrictions - for me, I sometimes get reloads that hang, even though I put in a max retry, and since they don't "fail," I never get the notification. And obviously, the email notification is generalized to the point where you have to log into the QMC to discover which app failed. But if you're a Qlik Sense admin, you're smart enough how to make customized email alerts for each reload task :).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;Setting up Qlik Web Connectors&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;If necessary, whitelist your Qlik Sense server’s IP in your mail relay.&lt;/LI&gt;
&lt;LI&gt;Download the QlikWebConnectors zip folder from the Qlik support site: &lt;A href="https://us-d.demo.qlik.com/download/" target="_blank" rel="noopener"&gt;https://us-d.demo.qlik.com/download/&lt;/A&gt;&amp;nbsp;
&lt;OL&gt;
&lt;LI&gt;Filter down to "Qlik Connectors" and under the "Products" section, scroll down to find "Qlik Web Connectors."&lt;/LI&gt;
&lt;LI&gt;Find the most recent Initial Release and click on the name to download - March 2020 at time of writing.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Extract that folder to the root of the C drive. Rename the folder to QlikWebConnectors if it is not already named so.&lt;/LI&gt;
&lt;LI&gt;You may notice no installation has ran yet. We will get back to that later. If you open the QlikWebConnectors folder, you can run QlikWebConnectors.exe to start the program. A window will appear in the bottom right of your screen.&lt;BR /&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42456iF3818D63F067F573/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Click "open in default browser" to begin setup. Accept the license agreement.&lt;/LI&gt;
&lt;LI&gt;While you can technically write out the script directly in a Qlik Sense app, a sanitized version of which I will provide below, the following is how to set up through the SMTP Connector.&lt;/LI&gt;
&lt;LI&gt;There are a lot of Connectors available. Browse to the "Standard" tab and open "Qlik SMTP Connector." Highlight SendEmail and click Parameters.&lt;/LI&gt;
&lt;LI&gt;Set up the fields according to how your mail server requires. Mine is set up to allow anonymous authentication but only whitelisted servers are allowed. Below is how mine is set up, but yours may be different.
&lt;OL&gt;
&lt;LI&gt;SMTP Server:&amp;nbsp;&lt;A href="https://mailrelay.beaconintermodal.com/" target="_blank" rel="noopener"&gt;FQDN&lt;/A&gt; of your mail relay&lt;/LI&gt;
&lt;LI&gt;Port: usually 25&lt;/LI&gt;
&lt;LI&gt;SSL Mode: depends on your setup - mine is anonymous so I set to "None"&lt;/LI&gt;
&lt;LI&gt;To: email you want to receive the email alerts&lt;/LI&gt;
&lt;LI&gt;Subject: email subject&lt;/LI&gt;
&lt;LI&gt;Message: email body&lt;/LI&gt;
&lt;LI&gt;HTML: check this box so you can use HTML tags in your Qlik script&lt;/LI&gt;
&lt;LI&gt;From name: display name the email is being sent from&lt;/LI&gt;
&lt;LI&gt;From email: email address the email is being sent from&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Click "Save Inputs &amp;amp; Run Table." On success, the To Email you entered above will receive the email.&lt;/LI&gt;
&lt;LI&gt;Click over to the "Qlik Sense (Standard Mode)" tab. You will see some instructions and some auto-generated code. Copy it to the clipboard.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 534px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42457iA05A40F9C40B06ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Create a new Qlik Sense app titled something descriptive (e.g. "Send Email"), open the Data Load Editor, and paste the code into the Data Load Editor. You may get a warning that the app has no data, which is expected and can be safely ignored.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 226px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42459iDA4DB9A580F64B35/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42460i95414E4A6DB98023/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Follow the instructions highlighted in red to set up the Web File connection. It should look as below. Give it a descriptive name as well. Make sure you create this as the Web Connector program is still running on the Qlik server.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42461iC5C4BB3F287BDDB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 302px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42462i5CAEAB913D601011/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 266px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42463i8D39A3F19DCFB844/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Make sure the variable "vQwcConnectionName" matches the name of the email connection you just created.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 514px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42464i82702DBCE35E27DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Click "Load Data" to test the email and make sure it gets sent to the email you set above.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 417px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42465i206C49395B964221/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;The obvious quirk of this set up is it requires the WebConnector program to be running constantly. Luckily, QlikWebConnectors can be set up to run as a service.&lt;/LI&gt;
&lt;LI&gt;On the Qlik Sense server, browse to C:\QlikWebConnectors\BatchFiles.&lt;/LI&gt;
&lt;LI&gt;Edit "Install Service.bat" and make sure the .NET and QlikWebConnectors_SVC.exe paths are valid.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 581px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42466iBAE867E9977609E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 582px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42467iFF0691F0F00D34AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Close Notepad and run the "Install Service.bat" as an admin. When the script has completed after a few seconds, press any key to close.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42468iA8752E0CE5D05822/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Open Services.msc, find Qlik Web Connectors, and change the Log On to your Qlik service account. You may otherwise run into errors in the future if you try to re-setup any connectors.&lt;/LI&gt;
&lt;LI&gt;Start the service.&lt;/LI&gt;
&lt;LI&gt;Right-click, Properties, and switch to the Recovery tab. Change the "First Failure" dropdown to "Restart the service." Change "Restart service after" to zero minutes. Click Apply and OK.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 314px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42469iB124CD20178E89FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;If you try to run the QlikWebConnectors.exe program again, you will get an error that the program is already running.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 389px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42470iA6FF8C13BF2B698E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;Setting up Task Failure Triggers&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Log into the QMC.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Browse to Tasks either from the Dashboard or the sidebar.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 504px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42471i09AE205A6FAF5BEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Create a new task, name it something descriptive, and select the Send Email app you created above as the app. The email sends within seconds so it is recommended to lower the default timeout and increase the retries, though this depends on your environment.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42472i86BB6D083D5B8949/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Click the "Actions" dropdown and select "Create new task event trigger."&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 195px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42473i6FE97312A9410263/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Name the trigger task something descriptive relative to the app, click "Add Task," change the dropdown to "Task Failed," and select the task you want to be alerted on a failure of. You can leave the time constraint as the default, it is not relevant when a task chain is only two tasks long, as is the case now. More information here:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/June2019/Subsystems/ManagementConsole/Content/Sense_QMC/create-reload-tasks-from-tasks.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense/June2019/Subsystems/ManagementConsole/Content/Sense_QMC/create-reload-tasks-from-tasks.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 599px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42474i9B695733863AE347/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;Repeat this process for each individual task you want to be alerted on. You can add a new Send Email app per app, new trigger event per Send email app, or new task per trigger event. I recommend the second for the sake of cleanliness and succinctness.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42475iCE3731FDE10749F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;Make sure this trigger event process is repeated for each new app that is published in the future.&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;When you go to the Tasks page in the QMC, you will notice little chain symbols for every app that is connected to the Send Email app and vice versa. You can click on this chain symbol to view the task chains from either direction.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 528px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42476iA04615344471D38E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 525px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42477i5E15CF92B05733E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;Editing the Notification App&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;As written above, the actual script that runs the SMTP Connector is complete and already published to Qlik Sense. In other words, if you ever need to edit or re-publish the app or change the SMTP settings, there is little to do. Details below:&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;When you set up the SMTP Connector and run the parameters, you will be given the below line of Qlik script. Notice how hard-coded the (unredacted) bold parameters are.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42478i0E473516DB9ECA5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Of course, hard-coding is not best practice and the syntax is not obvious at first glance. The bold parameters are replaced by variables in the actual published Qlik Sense app.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42479i07B1696A33DDE635/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Variables, when placed in the URL script line, must be in the form of $(variablename). If you look closely, every parameter is simply "parameter1=$(variable1)&amp;amp;parameter2=$(variable2)&amp;amp;..." The parameters from the original script block are untouched while the hard-coded values are now variables.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42480i8499008114EC6758/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;The script blocks are separated into sections, marked by comment sections. To go through them one-by-one:
&lt;OL&gt;
&lt;LI&gt;The first section is for script neatness. vQwcConnectionName pulls the webfile defined above into the script. vTimestamp is used for the email body.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 510px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42481iDE4F5EA0862F9968/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;These variables are the content that you will edit. The two "...Input" variables define the content of the email body and subject. More on them in the next section. The rest of the variables are what they sound like.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 582px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42482iD4D06A482735F0C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;I would strongly recommend never touching these lines. The URL script line in Qlik Sense requires plus signs in the place of spaces for each value. These two lines replace the spaces with plus signs for you so editing the value is easier.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42483i6B34A73B7406F85D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;[Redacted] QS Script for Send Email app&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/**** you shouldn't have to modify these after setup ****/
let vQwcConnectionName = '[web file connector]';
let vTimestamp = timestamp(now());

/**** Edit these variables to change the email contents. ****/
let vMessageInput = 'Qlik Sense Task Failure at ' &amp;amp; '$(vTimestamp)' &amp;amp; '.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;To Review, &amp;lt;a href="https://[Qlik Sense URL].com/qmc"&amp;gt;go to the QMC.&amp;lt;/a&amp;gt;';
let vSubjectInput = 'Qlik Sense Task Failure';
let vSMTPserver = ' ';
let vFromName = ' ';
let vSMTPPort = '25';
/**** use %40 in place of the @ symbol ****/
let vToEmail = '';
let vFromEmail = '';

/**** DO NOT EDIT ****/
/**** These variable text strings properly encode the text in the "input" variables ****/
/**** Replaces all spaces with plus signs in the message string above ****/
let vMessage = replace('$(vMessageInput)',' ','+');
let vSubject = replace('$(vSubjectInput)',' ','+');
/**** DO NOT EDIT ****/

SMTPConnector_SendEmail:
LOAD
    status as SendEmail_status,
    result as SendEmail_result,
    filesattached as SendEmail_filesattached
FROM [$(vQwcConnectionName)]
(URL IS [http://localhost:5555/data?connectorID=SMTPConnector&amp;amp;table=SendEmail&amp;amp;SMTPServer=$(vSMTPserver)&amp;amp;Port=$(vSMTPPort)&amp;amp;SSLmode=None&amp;amp;to=$(vToEmail)&amp;amp;subject=$(vSubject)&amp;amp;message=$(vMessage)&amp;amp;html=True&amp;amp;fromName=$(vFromName)&amp;amp;fromEmail=$(vFromEmail)&amp;amp;delayInSeconds=0&amp;amp;ignoreProxy=False&amp;amp;appID=], qvx);

// IMPORTANT: If, when loading the above script, you receive a 'Script Error' Dialog box with a 'Field Not Found'
// (or other) error, the first thing you should do is copy and paste the full request URL (i.e. the URL between the square [...]
// brackets IN THE QLIKVIEW / QLIK SENSE SCRIPT ERROR DIALOG) into a browser address bar and check the response.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2022 12:00:32 GMT</pubDate>
    <dc:creator>mdelvecchio</dc:creator>
    <dc:date>2022-07-01T12:00:32Z</dc:date>
    <item>
      <title>Setting Up Qlik Sense to Send Email Notifications on Reload Task Failure</title>
      <link>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/ta-p/1753023</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;I spent a bunch of time on and off trying to figure how to generate an email alert when a reload fails. It's something I and I'm sure many others wish was built-in and worked out-of-the-box, but it's actually somewhat possible. There are some restrictions - for me, I sometimes get reloads that hang, even though I put in a max retry, and since they don't "fail," I never get the notification. And obviously, the email notification is generalized to the point where you have to log into the QMC to discover which app failed. But if you're a Qlik Sense admin, you're smart enough how to make customized email alerts for each reload task :).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;Setting up Qlik Web Connectors&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;If necessary, whitelist your Qlik Sense server’s IP in your mail relay.&lt;/LI&gt;
&lt;LI&gt;Download the QlikWebConnectors zip folder from the Qlik support site: &lt;A href="https://us-d.demo.qlik.com/download/" target="_blank" rel="noopener"&gt;https://us-d.demo.qlik.com/download/&lt;/A&gt;&amp;nbsp;
&lt;OL&gt;
&lt;LI&gt;Filter down to "Qlik Connectors" and under the "Products" section, scroll down to find "Qlik Web Connectors."&lt;/LI&gt;
&lt;LI&gt;Find the most recent Initial Release and click on the name to download - March 2020 at time of writing.&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Extract that folder to the root of the C drive. Rename the folder to QlikWebConnectors if it is not already named so.&lt;/LI&gt;
&lt;LI&gt;You may notice no installation has ran yet. We will get back to that later. If you open the QlikWebConnectors folder, you can run QlikWebConnectors.exe to start the program. A window will appear in the bottom right of your screen.&lt;BR /&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42456iF3818D63F067F573/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;Click "open in default browser" to begin setup. Accept the license agreement.&lt;/LI&gt;
&lt;LI&gt;While you can technically write out the script directly in a Qlik Sense app, a sanitized version of which I will provide below, the following is how to set up through the SMTP Connector.&lt;/LI&gt;
&lt;LI&gt;There are a lot of Connectors available. Browse to the "Standard" tab and open "Qlik SMTP Connector." Highlight SendEmail and click Parameters.&lt;/LI&gt;
&lt;LI&gt;Set up the fields according to how your mail server requires. Mine is set up to allow anonymous authentication but only whitelisted servers are allowed. Below is how mine is set up, but yours may be different.
&lt;OL&gt;
&lt;LI&gt;SMTP Server:&amp;nbsp;&lt;A href="https://mailrelay.beaconintermodal.com/" target="_blank" rel="noopener"&gt;FQDN&lt;/A&gt; of your mail relay&lt;/LI&gt;
&lt;LI&gt;Port: usually 25&lt;/LI&gt;
&lt;LI&gt;SSL Mode: depends on your setup - mine is anonymous so I set to "None"&lt;/LI&gt;
&lt;LI&gt;To: email you want to receive the email alerts&lt;/LI&gt;
&lt;LI&gt;Subject: email subject&lt;/LI&gt;
&lt;LI&gt;Message: email body&lt;/LI&gt;
&lt;LI&gt;HTML: check this box so you can use HTML tags in your Qlik script&lt;/LI&gt;
&lt;LI&gt;From name: display name the email is being sent from&lt;/LI&gt;
&lt;LI&gt;From email: email address the email is being sent from&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;Click "Save Inputs &amp;amp; Run Table." On success, the To Email you entered above will receive the email.&lt;/LI&gt;
&lt;LI&gt;Click over to the "Qlik Sense (Standard Mode)" tab. You will see some instructions and some auto-generated code. Copy it to the clipboard.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 534px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42457iA05A40F9C40B06ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Create a new Qlik Sense app titled something descriptive (e.g. "Send Email"), open the Data Load Editor, and paste the code into the Data Load Editor. You may get a warning that the app has no data, which is expected and can be safely ignored.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 226px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42459iDA4DB9A580F64B35/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42460i95414E4A6DB98023/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Follow the instructions highlighted in red to set up the Web File connection. It should look as below. Give it a descriptive name as well. Make sure you create this as the Web Connector program is still running on the Qlik server.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42461iC5C4BB3F287BDDB0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 302px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42462i5CAEAB913D601011/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 266px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42463i8D39A3F19DCFB844/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Make sure the variable "vQwcConnectionName" matches the name of the email connection you just created.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 514px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42464i82702DBCE35E27DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Click "Load Data" to test the email and make sure it gets sent to the email you set above.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 417px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42465i206C49395B964221/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;The obvious quirk of this set up is it requires the WebConnector program to be running constantly. Luckily, QlikWebConnectors can be set up to run as a service.&lt;/LI&gt;
&lt;LI&gt;On the Qlik Sense server, browse to C:\QlikWebConnectors\BatchFiles.&lt;/LI&gt;
&lt;LI&gt;Edit "Install Service.bat" and make sure the .NET and QlikWebConnectors_SVC.exe paths are valid.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 581px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42466iBAE867E9977609E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 582px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42467iFF0691F0F00D34AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Close Notepad and run the "Install Service.bat" as an admin. When the script has completed after a few seconds, press any key to close.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42468iA8752E0CE5D05822/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Open Services.msc, find Qlik Web Connectors, and change the Log On to your Qlik service account. You may otherwise run into errors in the future if you try to re-setup any connectors.&lt;/LI&gt;
&lt;LI&gt;Start the service.&lt;/LI&gt;
&lt;LI&gt;Right-click, Properties, and switch to the Recovery tab. Change the "First Failure" dropdown to "Restart the service." Change "Restart service after" to zero minutes. Click Apply and OK.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 314px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42469iB124CD20178E89FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;If you try to run the QlikWebConnectors.exe program again, you will get an error that the program is already running.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 389px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42470iA6FF8C13BF2B698E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;Setting up Task Failure Triggers&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Log into the QMC.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Browse to Tasks either from the Dashboard or the sidebar.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 504px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42471i09AE205A6FAF5BEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Create a new task, name it something descriptive, and select the Send Email app you created above as the app. The email sends within seconds so it is recommended to lower the default timeout and increase the retries, though this depends on your environment.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42472i86BB6D083D5B8949/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Click the "Actions" dropdown and select "Create new task event trigger."&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 195px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42473i6FE97312A9410263/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Name the trigger task something descriptive relative to the app, click "Add Task," change the dropdown to "Task Failed," and select the task you want to be alerted on a failure of. You can leave the time constraint as the default, it is not relevant when a task chain is only two tasks long, as is the case now. More information here:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/June2019/Subsystems/ManagementConsole/Content/Sense_QMC/create-reload-tasks-from-tasks.htm" target="_blank" rel="noopener"&gt;https://help.qlik.com/en-US/sense/June2019/Subsystems/ManagementConsole/Content/Sense_QMC/create-reload-tasks-from-tasks.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 599px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42474i9B695733863AE347/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;Repeat this process for each individual task you want to be alerted on. You can add a new Send Email app per app, new trigger event per Send email app, or new task per trigger event. I recommend the second for the sake of cleanliness and succinctness.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42475iCE3731FDE10749F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;
&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;Make sure this trigger event process is repeated for each new app that is published in the future.&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;&lt;FONT size="4"&gt;When you go to the Tasks page in the QMC, you will notice little chain symbols for every app that is connected to the Send Email app and vice versa. You can click on this chain symbol to view the task chains from either direction.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 528px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42476iA04615344471D38E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 525px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42477i5E15CF92B05733E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;Editing the Notification App&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;As written above, the actual script that runs the SMTP Connector is complete and already published to Qlik Sense. In other words, if you ever need to edit or re-publish the app or change the SMTP settings, there is little to do. Details below:&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;When you set up the SMTP Connector and run the parameters, you will be given the below line of Qlik script. Notice how hard-coded the (unredacted) bold parameters are.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42478i0E473516DB9ECA5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Of course, hard-coding is not best practice and the syntax is not obvious at first glance. The bold parameters are replaced by variables in the actual published Qlik Sense app.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42479i07B1696A33DDE635/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT size="4"&gt;Variables, when placed in the URL script line, must be in the form of $(variablename). If you look closely, every parameter is simply "parameter1=$(variable1)&amp;amp;parameter2=$(variable2)&amp;amp;..." The parameters from the original script block are untouched while the hard-coded values are now variables.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42480i8499008114EC6758/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;The script blocks are separated into sections, marked by comment sections. To go through them one-by-one:
&lt;OL&gt;
&lt;LI&gt;The first section is for script neatness. vQwcConnectionName pulls the webfile defined above into the script. vTimestamp is used for the email body.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 510px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42481iDE4F5EA0862F9968/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;These variables are the content that you will edit. The two "...Input" variables define the content of the email body and subject. More on them in the next section. The rest of the variables are what they sound like.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 582px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42482iD4D06A482735F0C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;I would strongly recommend never touching these lines. The URL script line in Qlik Sense requires plus signs in the place of spaces for each value. These two lines replace the spaces with plus signs for you so editing the value is easier.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 624px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/42483i6B34A73B7406F85D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="5"&gt;[Redacted] QS Script for Send Email app&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;/**** you shouldn't have to modify these after setup ****/
let vQwcConnectionName = '[web file connector]';
let vTimestamp = timestamp(now());

/**** Edit these variables to change the email contents. ****/
let vMessageInput = 'Qlik Sense Task Failure at ' &amp;amp; '$(vTimestamp)' &amp;amp; '.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;To Review, &amp;lt;a href="https://[Qlik Sense URL].com/qmc"&amp;gt;go to the QMC.&amp;lt;/a&amp;gt;';
let vSubjectInput = 'Qlik Sense Task Failure';
let vSMTPserver = ' ';
let vFromName = ' ';
let vSMTPPort = '25';
/**** use %40 in place of the @ symbol ****/
let vToEmail = '';
let vFromEmail = '';

/**** DO NOT EDIT ****/
/**** These variable text strings properly encode the text in the "input" variables ****/
/**** Replaces all spaces with plus signs in the message string above ****/
let vMessage = replace('$(vMessageInput)',' ','+');
let vSubject = replace('$(vSubjectInput)',' ','+');
/**** DO NOT EDIT ****/

SMTPConnector_SendEmail:
LOAD
    status as SendEmail_status,
    result as SendEmail_result,
    filesattached as SendEmail_filesattached
FROM [$(vQwcConnectionName)]
(URL IS [http://localhost:5555/data?connectorID=SMTPConnector&amp;amp;table=SendEmail&amp;amp;SMTPServer=$(vSMTPserver)&amp;amp;Port=$(vSMTPPort)&amp;amp;SSLmode=None&amp;amp;to=$(vToEmail)&amp;amp;subject=$(vSubject)&amp;amp;message=$(vMessage)&amp;amp;html=True&amp;amp;fromName=$(vFromName)&amp;amp;fromEmail=$(vFromEmail)&amp;amp;delayInSeconds=0&amp;amp;ignoreProxy=False&amp;amp;appID=], qvx);

// IMPORTANT: If, when loading the above script, you receive a 'Script Error' Dialog box with a 'Field Not Found'
// (or other) error, the first thing you should do is copy and paste the full request URL (i.e. the URL between the square [...]
// brackets IN THE QLIKVIEW / QLIK SENSE SCRIPT ERROR DIALOG) into a browser address bar and check the response.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 12:00:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/ta-p/1753023</guid>
      <dc:creator>mdelvecchio</dc:creator>
      <dc:date>2022-07-01T12:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Up Qlik Sense to Send Email Notifications on Reload Task Failure</title>
      <link>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/1803613#M320</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is it possible to get the specific task name that fails and the logs attached to the alert email?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 18:31:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/1803613#M320</guid>
      <dc:creator>jpjust</dc:creator>
      <dc:date>2021-04-28T18:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Up Qlik Sense to Send Email Notifications on Reload Task Failure</title>
      <link>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/1992357#M755</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/138713"&gt;@jpjust&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are still looking for a solution, we have been using this for just over 2 years now and it is still running without any issues.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://developer.qlik.com/garden/56fd8bd3353d08684f6726bc" target="_blank"&gt;Qliksense Automated Task Failure Email Alerts - Qlik Developer&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 14:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/1992357#M755</guid>
      <dc:creator>williejacobs</dc:creator>
      <dc:date>2022-10-13T14:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Up Qlik Sense to Send Email Notifications on Reload Task Failure</title>
      <link>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/1998505#M817</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/32900"&gt;@williejacobs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;we also use this extension, but sometimes mails about task cancellations are sent to wrong persons. Do you know this phenomenon and have you found a solution?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 09:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/1998505#M817</guid>
      <dc:creator>JohannaR</dc:creator>
      <dc:date>2022-10-31T09:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Up Qlik Sense to Send Email Notifications on Reload Task Failure</title>
      <link>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/2000015#M818</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42325"&gt;@mdelvecchio&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for that good explanation! That works well for me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I would like to send e-mail to multiple recipients using the blind carbon copy (bcc).&lt;/P&gt;
&lt;P&gt;I thought I could simply change the "to" parameter into "bcc", but that doesn't work.&lt;/P&gt;
&lt;P&gt;Is there a way to put recipients into the bcc field?&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Gino&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 09:52:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/2000015#M818</guid>
      <dc:creator>luigi_nigro</dc:creator>
      <dc:date>2022-11-03T09:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Up Qlik Sense to Send Email Notifications on Reload Task Failure</title>
      <link>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/2008681#M824</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/29932"&gt;@luigi_nigro&lt;/a&gt;&amp;nbsp;, you will always need to use the TO parameter. Use a dummy address or the service account in the TO parameter and the recipients in the BCC parameter.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 09:53:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/2008681#M824</guid>
      <dc:creator>gardenierbi</dc:creator>
      <dc:date>2022-11-24T09:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Up Qlik Sense to Send Email Notifications on Reload Task Failure</title>
      <link>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/2008682#M825</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42325"&gt;@mdelvecchio&lt;/a&gt;&amp;nbsp;you could use the QRS connection to read the repository database. In the database you will find all the tasks, the task results, the task names, the owner of the task, the owners of the connected app, etc. With these details you can create notifications with more specific details.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 09:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/2008682#M825</guid>
      <dc:creator>gardenierbi</dc:creator>
      <dc:date>2022-11-24T09:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Up Qlik Sense to Send Email Notifications on Reload Task Failure</title>
      <link>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/2021547#M960</link>
      <description>&lt;P&gt;I did this with very easy solution&lt;/P&gt;
&lt;P&gt;&lt;A class="external-link" href="https://www.youtube.com/watch?v=Px4pvSlqK0s" target="_blank" rel="nofollow noopener"&gt;https://www.youtube.com/watch?v=Px4pvSlqK0s&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 05:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/2021547#M960</guid>
      <dc:creator>Shrikant</dc:creator>
      <dc:date>2023-01-04T05:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Up Qlik Sense to Send Email Notifications on Reload Task Failure</title>
      <link>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/2451840#M2171</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42325"&gt;@mdelvecchio&lt;/a&gt;&amp;nbsp;&amp;amp; everyone else,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've been following the discussions and am particularly inspired by this thread on setting up Qlik Sense to send email notifications on reload tasks. I wanted to share my enhancement to this process, which I believe could provide additional value to others in the community.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I've developed a script that sends email notifications and includes dynamic content, such as the latest reload status and a detailed HTML report of the task outcomes. This adds a layer of insight right into the email, allowing quicker reactions to task failures and a clear overview of the system's health throughout the day.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can find the full implementation on my GitHub repository:&lt;BR /&gt;&amp;nbsp;&lt;A href="https://github.com/FahadAbdu3/Qlik-Sense-Reload-Log-Automation/tree/main" target="_blank"&gt;https://github.com/FahadAbdu3/Qlik-Sense-Reload-Log-Automation/tree/main&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Feel free to explore the repository and reach out with your thoughts or suggestions on further enhancements or any issues you might encounter.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2024 17:55:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Member-Articles/Setting-Up-Qlik-Sense-to-Send-Email-Notifications-on-Reload-Task/tac-p/2451840#M2171</guid>
      <dc:creator>FahadAbdu</dc:creator>
      <dc:date>2024-05-13T17:55:35Z</dc:date>
    </item>
  </channel>
</rss>

