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 III
Super User III

@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

View solution in original post

Goredy
Frequent Visitor

Finally worked...Thank you

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,404)