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

Power automate

Hello All,

 

Is it possible to perform the following using power automate:

1) when a file is created in a document library; 2) then create a folder in the same document library; 3) and accordingly move the files to a specific folder based on the title of the file with in the same SharePoint document library ?

 

Thank you

1 ACCEPTED SOLUTION

Accepted Solutions

@Goredy 

Same site.  The following Flow just ran as designed and without error.  Full Path references Dynamic Properties for the create folder action.

image.png

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

Scott

View solution in original post

11 REPLIES 11
ScottShearer
Super User
Super User

@Goredy 

You can accomplish your goal by using the following SharePoint triggers and actions:

When a file is created (trigger)

Create Folder

Move File

 

Give it a try and post here if you have any issues or need more help.

 

 

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

Scott

Thank u for ur swift reply, but I am getting this error message.

Goredy_1-1617731367721.png

 

@Goredy 

Can you post a screen shot of your Flow in edit/design mode with all of the actions expanded?

 

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

Scott

Goredy_0-1617732549145.pngGoredy_1-1617732558549.png

 

@Goredy 

Change the Destination folder in your move file action to use Full Path from Create Folder in Dynamic Properties:

image.png

 

 

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

Scott

Goredy_0-1617743967164.png

 

Goredy
Frequent Visitor

So, power automate doesn't have the feature to move files within the same library? or I a missing something?

Thank you

@Goredy 

I found the move file action to be a little funky - I did create a Flow almost identical to yours and it ran without issue.  Try putting a \ before Full path and let me know if that resolves your issue.  Also, when testing, upload a new file rather than relying on re-running a previous run.

 

 

 

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

Scott

I still get the same error, however, when u did the test from ur end, did u make the current site address and the destination site address the same?

@Goredy 

Same site.  The following Flow just ran as designed and without error.  Full Path references Dynamic Properties for the create folder action.

image.png

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

Scott
Goredy
Frequent Visitor

Finally worked...Thank you

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,951)