Download FTP files by using Filename

Hi, I want to download file with dynamic filename. eg. 123456-DocFile-abcd123.pdf and doc format. filename *123456 will be changed and abcd123 also changeable. only DocFile is fixed for me to recognize this is the file I need.
However with the Read Text File it showed up as below. anyone please help, been stuck there for days.

Hi @koolrc812

Hello @koolrc812

Here the TxtFile is a list of file names and you cannot directly pass that value. So wither you can use a for each activity and loop through each file names or if there is only one file, then you can use the index to retrieve the filename as below.

TxtFile(0).ToString

Thanks

Thanks heaps it works

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.