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: 
Not applicable

Help: How to automatically grab new files from a folder

Hello All,

     right now my company is saving our daily reports in a folder and it's updated daily with new reports added in as new files.

     so if i am trying to grab every files in this folder automatically,how do i do it?

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

Your files must have the same structure, in this case you can use a loop:

let

path = '..\..\MyDir\*.*';



for Each File in FileList (path)



margin_tmp:

LOAD

     ....

     fields

     ....
FROM

$(File) (ooxml, embedded labels, table is [MySheet]);

NEXT

View solution in original post

2 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Your files must have the same structure, in this case you can use a loop:

let

path = '..\..\MyDir\*.*';



for Each File in FileList (path)



margin_tmp:

LOAD

     ....

     fields

     ....
FROM

$(File) (ooxml, embedded labels, table is [MySheet]);

NEXT

Not applicable
Author

sweet!!!! THANK YOU SO MUCH  Alexandros!!!