How to pickup a latest file which is uploaded recently with a particular file name(File name will be ended with date) from a sharepoint

How to pickup a latest file which is uploaded recently with a particular file name(File name will be ended with date) from a sharepoint …

Can we implement through Sharepoint activities or any other Custom packages available??

Map that sharepoint directory as local drive.

Using that mapped drive you can loop through the files

Foreach File in dirInfo.GetFiles().OrderByDescending(Function(x) x.LastWriteTime)

Hope this helps, @Arunthej_Palthepu

Hi
Welcome to uipath community
Kindly check once we can sync the share point folder with our machine drive and if so sync them up
—once after syncing use a assign activity like this to get the last created file
Str_filepath = Directory.GetFiles(“yourfolderpath”).OrderByDescending(Function(a) New FileInfo(a).CreationTime).ToList(0).ToString

Where str_filepath is a a string variable having the file path of the latest file

Cheers @Arunthej_Palthepu

Thank you…let me try once

1 Like

Thank you…Let me try once

Could you please help me how to link the sharepoint to the local drive?