Hi,
I should start by saying I'm entirely new to flow (minus a few approvals flows I've done recently). I am trying to create a flow that when a file is added to the library, it will copy the file into a different library and place it in an existing/new folder based off the file name.
However, if the folder doesn't exist within the library then create a new folder using the file name (refer to document names below) then copy the file and if the folder does exist to copy it in the correct folder based off the file name
ASP5C4567 - (Folder name)
- ASP5C4567 - Product Label - LABEL123.PDF (this will be a standard naming of all files uploaded)
- ASP5C4567- Box Label - BOXL123.PDF
- ASP5C4567 - Box Artwork - CBOX123.PDF
I wish I could show an example of what I have attempted, but I'm having a hard time even starting it.
If there is any more information that I can provide then, please ask.
Kind Regards,
Artur
Hi @Anonymous,
Instead of using copy file action, you could use the create file action to copy the file. The Create file action could create a folder in the Sharepoint library if the folder doesn't exist. For example, this is an instance that creates a file the folder path does not exist:
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.
Try something like below...
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2