cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
paddy76
Frequent Visitor

Copy new file created in SharePoint to folder based on filename

Hi all,

 

I have a Sharepoint directory where PDF files are being created. I would like to create a flow that will move files created in this folder to a sub-folder in the same directory based on keywords in the file name.

 

Keyword1infilename.pdf

Keyword2infilename.pdf

Keyword3infilename.pdf

Keyword4infilename.pdf

 

Each of the above files would be moved to the corresponding folder:

 

Folder for keyword1

Folder for keyword2

Folder for keyword3

Folder for keyword4

 

Any help would be greatly appreciated. 

 

Thanks in advance.

 

Pat

 

 

1 REPLY 1
abm
Super User
Super User

Hi @paddy76 

 

You need a separator in your filename between keyword and filename so that you could use Split() expression to get the keyword. Then use the copy file action and delete file action to implement your requirement.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blogPower Automate Video Tutorials

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,233)