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: 
vsitsula
Contributor
Contributor

Reading emails that has attchments only

Hi guys

 

I am new in talend, I need help regarding email. How do I read email that only has attachments or after reading all email, how do I check if an email has an attachments?

 

My goal is to read a specific email with csv file attached, if there is no attachment I have to send back a mail saying no file attachment.

 

Please help!  

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi
on tFileInputEmail, there is a field called 'export attachment folder', after you read the email, you use tfileExist to check if the file exists or not if the name of attachment file is always the same, or use tFileList to iterate the folder, if the global variable ((Integer)globalMap.get("tFileList_1_NB_FILE")) >0, that means the email contains attachment.

Regards
Shong

View solution in original post

1 Reply
Anonymous
Not applicable

Hi
on tFileInputEmail, there is a field called 'export attachment folder', after you read the email, you use tfileExist to check if the file exists or not if the name of attachment file is always the same, or use tFileList to iterate the folder, if the global variable ((Integer)globalMap.get("tFileList_1_NB_FILE")) >0, that means the email contains attachment.

Regards
Shong