cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rupert1
Level: Power Up

Moving files in sharepoint based on name

Hi,

We recieve files every day into a sharepoint folder.  New files are added throughout the day to this folder, sometimes multiple files are added at the same time. 

 

The names of the files are a combination of text and numbers.  (eg.  190832_Pending ; HLDX_20165448987).  The numerical component will change every day, but the text component will never change. 

 

We want to create a flow where we will pick up the file from the sharepoint folder and move it into a separate sharepoint folder based on the text component in its name.

 

Any ideas on how to do this?

 

Thanks

4 REPLIES 4
Super User
Super User

Re: Moving files in sharepoint based on name

HI @Rupert1 

 

We could use Regular Expressions to achieve this. To do this, Power Automation has a component called "Plumsail" that can help with this.

 

To be able to use, you need an API key that you can get here:

https://plumsail.com/docs/documents/v1.x/getting-started/sign-up.html#generate-api-key

 

Then connect it and use it like this:

https://plumsail.com/docs/documents/v1.x/flow/how-tos/documents/use-regex-match-to-extract-values.ht...

 

You'll get something like this:

regex-match-flow.png

 

Then you can define your expression so that you can parse after the files.

 

Is this what you need? If not, please let me know, and we'll try to figure this out together.

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Cheers
Manuel

Community Support Team
Community Support Team

Re: Moving files in sharepoint based on name

Hi @Rupert1 ,

 

Have your problem been solved?  If yes, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

 

Best Regards,

Alice

 

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Rupert1
Level: Power Up

Re: Moving files in sharepoint based on name

sorry - i had thought i had replied to this a few weeks ago.

 

i am nervous using a third party application as I don't want to give a third party system access to our infrastructure and data.

 

is there any way to do this directly within PowerAutomate without needing to integrate into Plumtree?

Community Support Team
Community Support Team

Re: Moving files in sharepoint based on name

Hi @Rupert1 ,

 

The answer is not.

 

Best regards,

Alice       

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons in April

Read the announcement for more information!

firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (8,774)