Hi All,
I am trying to build a flow (as you can probably guess):
- Library 1: Master files, in subfolders, modified every once in a while.
- Library 2: Same files, but different folder structure with subfolders and sometimes multiple duplications of the files.
Library 1: When a file is updated, I want it to search through Library 2 and all subfolders and replace the file and all dublications of it with the new version.
I of course started with the easy one, it copies all updates to the destination folder. But I want it to search through the subfolders of the destination folder and replace it there. Is that at all possible? Any ideas would be very much appreciated 🙂
Thank you!
Hi @Annnika,
You could following these steps to approach that:
substring(outputs('Get_file_properties')?['body/{Path}'],0,lastIndexOf(outputs('Get_file_properties')?['body/{Path}'],'/'))
Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for the response!
I have set it up accordingly, but struggle a bit with the "copy file". So in the first steps it takes all information from library 1, but in "copy file" there is no mention of library 2 as destination folder to search through. What am I missing here?
Best regards
Annika
Hi @Annnika
Please refer to the below link
Hello Sudharsan,
thank you! Unfortunately not, the copying works perfectly, but the challenge is that it should not simply copy the file to a certain main destination folder in library 2, but search through library 2 and all it's subfolders to find and replace the file wherever it can be found.
Best regards
Annika
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
91 | |
57 | |
41 | |
39 | |
38 |
User | Count |
---|---|
82 | |
69 | |
57 | |
55 | |
40 |