Get Renamed files in a folder




How to get renamed files in a folder? (Using File Change trigger or something similar)



You can use the File Change trigger inside a MonitorEvents scope to detect when a file is renamed in the target folder, but to get also the file that was renamed you need to compare the new list of files in folder with the old list. The problem is when you rename multiple files at once (you can do that in windows) that you only have a list of files which were renamed and the list of new names, but you can’t know exactly which new name correspond to which old name.

See attached workflow with state machine, it will write a log message every time a file is renamed inside the monitored folder. The process will stop when “stop.txt” file is create/renamed in the monitored folder.
GetRenamedFiles.xaml (21.9 KB)