Qlik Community

QlikView Publisher

Discussion Board for collaboration on QlikView Publisher.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

leni_balakrishn
Contributor III

To send mail dependent on another task

Hi All,

Do anyone know How to send a mail after the completion of a particular task.??

It is like I have written a macro to send an email with the snapshots of charts.

Once the distribution task of the particular application completes, this mail should get trigger an send it to particular recipients.

I am not having any idea to achieve this.

Kindly share your thoughts on how to achieve this.

Its little urgent.

Thanks,

Leni Balakrishnan

19 Replies
Support
Support

Re: To send mail dependent on another task

Publisher ignores all marcos so you will not be able to get this to work through publisher. You can try setting it up to run in a .bat file using the desktop version.

Bill

Bill - Designated Support Engineer at Qlik
If a post helps to resolve your issue, please mark the appropriate replies as CORRECT.
leni_balakrishn
Contributor III

Re: To send mail dependent on another task

Could you please explain me on how to do it??

Thanks,

Leni Balakrishnan

Not applicable

Re: To send mail dependent on another task

Hi,

You can create a batch file and run it through external task tab on QMC.

Then you can run this task on success of another task, the option is availble on the same tab.

Hope this helps.

Regards,

Amay.

leni_balakrishn
Contributor III

Re: To send mail dependent on another task

I tried that option as well but it is not working

vikasmahajan
Esteemed Contributor

Re: To send mail dependent on another task

Dear Leni,

I have applied Sending Emails to user sucessfully at my end :-

1  Create Macro to Send Email

    and on post reload of documents setting -> triggers you can run the macro

2 To excute this macro you have to run macro externally this won't work via QMC.

3  create batch file for executing macro

4   Through windows schedular you can schedule jobs to send emails to users.

Hope this solve your problem

Bye

Vikas

Not applicable

Re: To send mail dependent on another task

Hi,

Are you able to send mails with external tasks on QMC or Are you facing issue with dependent tasks execution.

Please let me know where the issue is?

Also can you attach the batch file you have written for sending mail.

Regards,

Amay

vikasmahajan
Esteemed Contributor

Re: To send mail dependent on another task

Its working fine with no issue  please attach your batch file to help you

Thanks

Vikas

leni_balakrishn
Contributor III

Re: To send mail dependent on another task

Through windows scheduler it is working fine for as well.

But it will trigger on a defined time right??

But I need to trigger the email based on the completion of another task.

leni_balakrishn
Contributor III

Re: To send mail dependent on another task

I have created a task in Supporting Tasks -> External Program and in trigger section I have added like trigger on xxx task like that.

The task is running but nothing is happening. Simply it shows like running.

The below is the statement I am using in bat file

"C:\Program Files\QlikView\Qv.exe"  /vvar_SendEmail=1 /NoSecurity "C:\Users\leni.balakrishnan\Desktop\Test_Loop.qvw"