Hi @LuisMoreno ,
When a new file is created, first obtain the content of the newly created file, then obtain all files in the folder that needs to be migrated, and filter out the file name equal to 'prueba.xlsx'.
If the length is greater than 0, it proves that prueba.xlsx already exists. file, go to the yes branch, delete the original prueba.xlsx file in the migration folder, replace it with a new created file, and finally delete the files in the original folder.
If it is no, it proves that the prueba.xlsx file does not exist in the migration folder, create a new file directly, and then delete the file in the original folder.
In short, the name of the newly created file in the original folder cannot be changed, otherwise flow will not recognize the file in subsequent steps.
Please check this test:



items('Apply_to_each')?['{identifier}']
Best Regards,
Sunshine Gu