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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
DavidETL
Contributor III
Contributor III

Load Data into database from file and attach filename in a column via tmap

Hi All,

 

I have a batch job which currently loads data from a list of files into a MySQL table. I'm trying to work out how to use tfileproperties to obtain the filename and attach it as an extra column to the exiting dataset via tmap?

 

Below is my current job which works. But not sure where to add in tfileproperties?

 

0683p000009M6JU.png

Labels (4)
1 Reply
Anonymous
Not applicable

Hello,

You can get tFileProperties through iteration of tFileList and use the CURRENT_FILE globalMap value.

Best regards

Sabrina