
Announcements
Hi everyone,
I've created a flow that renames some files. My goal is to rename the file unless a file with the same name already exists. If a duplicate exists, I want to append a number to the end of the file name and keep increasing the number by 1 until a unique file name is found.
I’ve successfully implemented the renaming part, but I’m struggling with adding the logic to handle duplicates by adding a number.
This is what I’ve come up with so far. I've tried a few different approaches, and this is the closest I've gotten.
The number will always be less than 3 in practice, but I've set it to go up to 10 just to be safe.
Where am I going wrong? I am probably missing something silly!
Thanks,
Ashley