Get lastest documents in folder in the past hours

Basically that, i need to get the lastest excel names in a folder for the last 3 hours and i still havent been able to do it

@Christopher_Gomez

  1. Take a look Here
  2. There is a custom activity for this please check it

Hi, @indra
I use this code String.Join("",Directory.GetFiles("Filepath","*",SearchOption.AllDirectories).OrderByDescending(Function(d)New FileInfo(d).CreationTime).Take(3)) to get the last 3 files but instead is returning the oldest 3 files

@Christopher_Gomez Attached zip file meets your requirement

GetFilesFromLastThreeHour.zip (29.3 KB)

1 Like

Hi @indra
what was the third activity u have used in the xaml file. it shows me red coloured activity error code

@sudharani Can you share screen shot here of where you are getting error

@sudharani Its for each activity

@indra Thanks, for the help

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