Hi @Fernando_Cavalcante_Gomes,
- You can get the last downloaded file from the below expression in Assign Activity Value:
Directory.GetFiles(FolderPath,“*.extension”).OrderByDescending(Function(x) New FileInfo(x).CreationTime).ToArray(0)
FolderPath - Physical Path of the folder where file will download
extension - extension of the file, incase if you don’t want to keep a constraint on extension you can use * in place of extension.
- To Rename the file you can use Move Activity
Move a file or Rename a file - #5 by aksh1yadav
Happy Coding!!!