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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tsendmail send same mail manytimes

I'm trying to join two tables and send the result of the join filtered in a tsendmail, Job below :

What I want to do is to send the rows collected in the same mail

0683p000009M2Ln.png

 

My problems is that it's sending the same row many times.

 

Can you help solving this problem ?

Labels (1)
  • v7.x

1 Solution

Accepted Solutions
vapukov
Master II
Master II

you can not use file in tJava (only file name)

in tJava you can use prepared variable (globalMap)

 

prepare file nd variables:

0683p000009M27i.png

 

send email with prepared text and attachments:

0683p000009M2A3.png

View solution in original post

15 Replies
vapukov
Master II
Master II

Hi

 

the simplest way - store all in csv file and run tsendmail as separate subjob connected by OnSubjobOk trigger with attachments

Anonymous
Not applicable
Author

Is it possible to clean the csv file each time the email is sent so we can send new rows after each execution ?

vapukov
Master II
Master II

of course, just add after tSendMail -> OnSubJobOk -> tFileDelete

Anonymous
Not applicable
Author

Hi,

You can use tjavaflex just before tSendmail and save you rows from table in array and then using global variable you can print in under "Message box" in tSendmail component.

 

Regards,

Rahul

Anonymous
Not applicable
Author

@rahuljan  I'm using TjavaRow to read the output that I'm injecting in an HTML Code and then using the global variable to send the email.

 

Can I  declare the array in the same place and using it afterward or I need to move the code to the tjavaflex

Anonymous
Not applicable
Author

@vapukov I'm a bit confused, can you walk me through your suggestion?

vapukov
Master II
Master II


@SwanGhazi wrote:

@vapukov I'm a bit confused, can you walk me through your suggestion?


what do you mean?

 

create file tFileOutputDelimited 

send file - tSendMail

delete file - tFileDelete

Anonymous
Not applicable
Author

Yes you to save everything in array before.

Anonymous
Not applicable
Author

@vapukov  I should create that file before tjavaRow right ?