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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,203)