cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
m-s
Regular Visitor

Move a file within OneDrive for Business

I'm trying to create a flow that will move every new file in the Pictures folder that contains the text part "-WA" to a subfolder "WhatsApp".
What I don't succeed in is putting the new path together, because I can't find a value that only represents the path. I only see the path including the file name as a value.

 

Screenshot 2021-08-29 154959.jpg

5 REPLIES 5
eric-cheng
Solution Sage
Solution Sage

Hi @m-s ,

 

The filepath from the trigger looks like the below which contains a bunch of additional information like the drive as well as the filename.

 

Screenshot_20210830-010212_Chrome.jpg

 

Looks like you may need to use expressions to extract the portion between 'root:' and the filename to get the path.

 

I tried using the Get File Metadata action and it doesnt have the information either.

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

 

 

m-s
Regular Visitor

Thanks for the reply.

Once again it shows me that Power Automate is not as easy as Microsoft likes to claim.

Maybe I'll take the time again and make a path for myself.

eric-cheng
Solution Sage
Solution Sage

Hi @m-s ,

 

Is SharePoint an option for you? You can accomplish that alot easier.

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

m-s
Regular Visitor

Hi @eric-cheng,

 

What do you mean? Should I use the SharePoint Connector instead of the OneDrive Connector?

 

eric-cheng
Solution Sage
Solution Sage

Hi @m-s ,

 

With the OneDrive connector, you don't get as much of the details as you would with the SharePoint connector.  In the example above, to get the file path, you would need to extract it out of what is returned in the header.

 

However, it depends on your requirements.

 

--------------------------------------------------------------------------
If I have answered your question, please mark my post as a solution
If you have found my response helpful, please give it a thumbs up

Connect on LinkedIn

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,631)