How to get the last downloaded pdf file from the Folder

How to get the last downloaded pdf file from the Folder

1 Like

Hi, @Mani_Mani
in the path variable give the folder path this workflow will give you the latest downloaded pdf
Proc1.zip (11.1 KB)

hope it helps.
let me know if that solved your problem.

4 Likes

@Mani_Mani

Directory.GetFiles(“YourFolderPath”,“*.PDF”).OrderByDescending(function(x) new FileInfo(x).LastWriteTime).FirstOrDefault

3 Likes

No!!! I need to get the finally downloaded pdf from the downloads and move that to C drive input folder and process it… Can you please help me to get the latest downloded pdf file in downloads?

the XAML what i gave you will give you the path of last downloaded PDF file, by using this as the input to the move file you can achieve your requirement.

3 Likes

Yes it works in all folders, but need to get the last downloaded file from the downloads. Its not working in downloads folder. Please help

@Mani_Mani

Give the path of the download folder it will fetch the file based upon the last Creationtime/Modifiedtime

3 Likes

Proc1 (2).zip (11.5 KB)
check this i have updated the work flow but please give the input and output path

3 Likes

Thank you it works

Thank you… It works

2 Likes

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