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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Attach multiple documents using tsendmail

Hi
All,I have a query which will pull in some physical paths which is present in a database table. Along with that I need to replace the filename as well.
Let say for eg:-The path is/data/media/10000234.csvThe original name of the file is hello.csv. I need to replace this 10000234 with hello.
Secondly there can be additional paths which would be pulled in from the query and they would have some different filenames.So, in this scenario I would like to get all the files which may be present in various locations replaced with their filenames and attach to a single email.Please suggest
Labels (6)
1 Reply
TRF
Champion II
Champion II

Use tFileCopy to copy or move files from the source folder to a temporary folder.

With the same component, you can change the target file name as desired.

Using tSendMail, you will attach the temporary folder to the email, not the individual files.

Finally, delete the temporary folder.