Reading a CSV file from downloads folder with different names

Hi, I am trying to read in a csv file as soon as it downloads into my read csv activity but am unsure how to do it because the downloaded file has a different name each time. I only read in one file per process but each time I run the process the name will change. I looked around the forum but did not see anything that would be an immense help.

Thank you in advance for your help!

@Sahil_J_Patel -

StrGetCSV = Path.GetFileName(Directory.GetFiles(“Your Folder”,"*.csv").OrderByDescending(Function(d) New FileInfo(d).LastWriteTime).First)

Thank you for the help! It worked.

1 Like

@Sahil_J_Patel - Glad to know… Kindly mark my post as solution, that will close this thread and also help others looking for solution.

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