cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DIGITALROOM
New Member

Moving a file in Sharepoint after it has been approved

I have a flow that uses Teams and Sharepoint to log and manage approvals.  There are 3 folders under the Documents library in Sharepoint:  Authored, Approved, and Denied.

 

Whenever I upload or save a file to the Authored folder it sends a Teams message to the appropriate approver telling them to approve or reject it.  All that is working fine.  I want to add the functionality of moving documents from the Authored folder to the Approved folder or the Denied folder depending on the outcome of the approver's selection.

 

This is what I have so far that is not working:

DIGITALROOM_0-1641619194803.png

this is the Yes branch

DIGITALROOM_2-1641619394334.png

 

There's more code blocks before this but this is the area that I need to make the modification to.  I've tried several different values for "File to Move" and I can't get it to move.  I'm using the web address from the Sharepoint home screen in both the "Current Site Address" and "Destination Site Address" since both folder are in the same library.

 

Any help would be appreciated.

 

Thanks

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yujincui-msft
Community Support
Community Support

Hi @DIGITALROOM ,

 

Do you want to move uploaded files to different folders based on approval results?

According to the screenshots you provided, I found the problem, "File to Move" needs a File Identifier, not a File Name.

vyujincuimsft_0-1641797531472.png

 

vyujincuimsft_1-1641797531474.png

In addition, I have made a test for your reference.

1. Here is my folders.

vyujincuimsft_2-1641797531476.png

2. Create a flow.

vyujincuimsft_3-1641797531480.png

vyujincuimsft_4-1641797531484.png

vyujincuimsft_5-1641797531486.png

Result Screenshots:

vyujincuimsft_6-1641797531487.png

 

vyujincuimsft_7-1641797531488.png

vyujincuimsft_8-1641797531489.png

 

Best Regards,

Charlie Choi

View solution in original post

2 REPLIES 2
v-yujincui-msft
Community Support
Community Support

Hi @DIGITALROOM ,

 

Do you want to move uploaded files to different folders based on approval results?

According to the screenshots you provided, I found the problem, "File to Move" needs a File Identifier, not a File Name.

vyujincuimsft_0-1641797531472.png

 

vyujincuimsft_1-1641797531474.png

In addition, I have made a test for your reference.

1. Here is my folders.

vyujincuimsft_2-1641797531476.png

2. Create a flow.

vyujincuimsft_3-1641797531480.png

vyujincuimsft_4-1641797531484.png

vyujincuimsft_5-1641797531486.png

Result Screenshots:

vyujincuimsft_6-1641797531487.png

 

vyujincuimsft_7-1641797531488.png

vyujincuimsft_8-1641797531489.png

 

Best Regards,

Charlie Choi

DIGITALROOM
New Member

Thank you.  That was the missing piece.  It worked flawlessly.

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.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

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.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,289)