cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Copy files between OneDrive for Business and SharePoint

Hi,

 

i have sucessfully set up the flow "Copy files between OneDrive for Business and SharePoint" from the template.

 

when i add a file to the relevant folder it is moved to the correct folder in SharePoint, but now i  need to remove the same file from OneDrive for Business. how do i edit the flow to do this?

 

kind regards,

 

Shaun

3 REPLIES 3
Community Support Team
Community Support Team

Re: Copy files between OneDrive for Business and SharePoint

Hi smithy20,

 

Could you tell more details about your scenario?


I am not sure with “but now I need to remove the same file from OneDrive for Business”. Do you want to delete the file from OneDrive for Business after the file is copied to SharePoint library?


If I understand you correctly, please try to use the action “OneDrive for Business – Delete file”. Then the flow could be configured likes below.

3.PNG

 

Please try it on your side to see if it will work for you.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
steveloranz
Level: Powered On

Re: Copy files between OneDrive for Business and SharePoint

I just did exactly this but the “OneDrive for Business – Delete file” action fails, saying that the resource cannot be found. I'm using the "File Identifier" dynamic content and I can see that the file identifier on the delete step matches the file identifier in the trigger.

 

That delete action does ask for a file identifier, but I've also tried it with the file path with no luck.

 

Is this a bug?

steveloranz
Level: Powered On

Re: Copy files between OneDrive for Business and SharePoint

Just a note that the same steps work when using Dropbox instead of OneDrive for Business.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 321 members 5,780 guests
Please welcome our newest community members: