I have a Flow which detects changes or creation of files in a repository and, after a filtering, copies them to a different Sharepoint, including metadata.
However I was informed that users in the first Sharepoint sometimes rename files, for example when a document has to be archived.
Renaming triggers the flow, since the properties of the file have changed, but I couldn't find any way to detect the original name, therefore I cannot search in the destination repository and apply the same rename there (or, for archived files, delete the file directly): the renamed file gets added to the destination repository instead.
I searched online but I could find only a thread on microsoft.com and a related question here on SE. None provides a solution.
How can I handle file renames when synchronising files between two repositories?