Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Highlighted
nishantrft
New Contributor

Windows Batch file to sent email to users if Qlikview task is success.

Hi Support team,

Mentioned below the scenario and requirement. We have around 10 Qlikview mounted application are there in QMC and total  19 qvws and in QMC around 25 qlikview tasks related to above qvws.

Now we need to sent email to few users , if a particular qvw task is successfully refreshed in QMC.

Say we have TestTask1 for Testtask1.qvw and TestTask2 for B.qvw. I want to sent email to nishant.v@xyx.com if Tasttask2 is successfully refreshed.

So the best option suggested was write a batch file to sent email and put the task in System->supporting task-->Extrenal Program in QMC  and create dependency on Qlikview task : Tasttask2. So if Tasttask2 is completed the external Program will trigger the batch file.

Can anyone help me to create a batch file to sent email, if this qlikview task is success in QMC ?

 

Thanks in advance.

 

7 Replies
Claudiu_Anghelescu
Contributor III

Re: Windows Batch file to sent email to users if Qlikview task is success.

https://community.qlik.com/t5/QlikView-Documents/CREATING-AUTOMATED-ALERTS-AND-EMAILS-SENDING-BASED-...
To help community find solutions, please don't forget to mark as correct.
nishantrft
New Contributor

Re: Windows Batch file to sent email to users if Qlikview task is success.

Thanks for the document.

But it wont resolve my issue. I need to sent an notification email to few users if a particular task refreshes.

This document content just help to sent an email with no subject or content to one user manually.

Claudiu_Anghelescu
Contributor III

Re: Windows Batch file to sent email to users if Qlikview task is success.

Another option is to create another task triggered Upon success of "your task" .

Creating a field Mail which contains the Mail Addresses.

 

Mail.PNG

To help community find solutions, please don't forget to mark as correct.
nishantrft
New Contributor

Re: Windows Batch file to sent email to users if Qlikview task is success.

Thanks for the reply,

Is it like I need create a new field in my qvw datamodel with required email IDs, If its done also could you brief me how we will sent notification on the success of my task.

Claudiu_Anghelescu
Contributor III

Re: Windows Batch file to sent email to users if Qlikview task is success.

Yes, I will send you a documentation.
Meanwhile you can create a field named "Mail" which has all the needed e-mails as recipients.
To help community find solutions, please don't forget to mark as correct.
nishantrft
New Contributor

Re: Windows Batch file to sent email to users if Qlikview task is success.

Thanks for the help,

Waiting for the document.

Support
Support

Re: Windows Batch file to sent email to users if Qlikview task is success.

Wanted to point out the following as well, if the user(s) in question are in the distribution list, the Notify feature could be used as well I believe, this may be a possible better solution than the one upon which you are working currently.

https://help.qlik.com/en-US/qlikview/November2018/Subsystems/QMC/Content/QV_QMC/QMC_Documents_Source...

Regards,
Brett

To help users find verified answers, please don't forget to mark a correct resolution or answer to your problem or question as correct.