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
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to get filenames generated by tfilelist and trowgenerator in the tsendmail component

Hi Team,

 

I need to get the file names from the server and add it to tsendmail component so that the mail component notifies the names of the files present in server. I am using tFTPFilelist and tRowgenerator components to fetch the names of the files from the server. But I am unable to add those in the tsendmail component. 

Please let me know how to solve this.

 

Thanks

Puspanjali

Labels (3)
8 Replies
manodwhb
Champion II
Champion II

@Puspanjali12,you can use the global variables of tFilelist,which is ((String)globalMap.get("tFileList_3_CURRENT_FILE")).

Anonymous
Not applicable
Author

I have used ((String)globalMap.get("tFileList_3_CURRENT_FILE")) in trowgenerator and i have fetched the filenames. Now, how can i add it to tsendmail component which will send all the file names fetched from trowgenertor?

 

Anonymous
Not applicable
Author

Hello,

Could you please let us know if this related topic helps?

https://community.talend.com/t5/Design-and-Development/resolved-Sending-the-content-of-tfileoutputde...

Best regards

Sabrina

manodwhb
Champion II
Champion II

@Puspanjali12,one way is to send a mail for each file,you just use the ((String)globalMap.get("tFileList_3_CURRENT_FILE")) in the subject and body that you need to set as you required by iterate from tFileList to tSendmail.

Anonymous
Not applicable
Author

Thanks sabrina for the reply.

Can we achieve the same without using tfileoutdelimited or any external tables?

Thanks

Puspanjali

Anonymous
Not applicable
Author

Thanks Manohar for the reply.

There is a strict requirement that a single mail should be sent with all the file names.

Thanks

Puspanjali

manodwhb
Champion II
Champion II

@Puspanjali12,then you create a file with and populate all the filename ,which are listed in tfilelsit and read tha same file and concatenate the records using tJavarow by using contexts and use the context in tsendmail. 

manodwhb
Champion II
Champion II

@Puspanjali12,still do you have issue?