cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DD2
Level: Power Up

How to transfer OneDrive for business to a seperate OneDrive for Business Account..Please help!!

Background: Part of a recent acquisition and we are moving to new OneDrive for Business accounts, is there a way to transfer all of files to our new OneDrive accounts without simply downloading and zipping them? 

 

I have tried to create a flow but it only allows me to select one folder at a time and I cannot tell if it is even working - any help would be greatly appreciated!

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support Team
Community Support Team

Re: How to transfer OneDrive for business to a seperate OneDrive for Business Account..Please help!!

Hi @DD2,

 

If you want to transfer files from OneDrive for business account(1) to a seperate OneDrive for Business account(2),

You could refer to steps below to acheive your requirement:

 

1. make sure the connection account in the "List files in folder" action and "Get file content" action are use OneDrive for business account(1).

2.make sure the connection account in the "Create file" action is use OneDrive for business account(2).

 

Image referance:

Capture.PNG 

 

The expression in the "Folder Path" field of "Create file" action as below:

 

first(split(items('Apply_to_each')?['Path'],last(split(items('Apply_to_each')?['Path'],'/'))))

 

 

The expression in the "File Name" field of "Create file" action as below:

last(split(items('Apply_to_each')?['Path'],'/'))

The flow would run successfully as below:

Capture.PNG

 

 

Best regards,

Alice

 

 

View solution in original post

Super User
Super User

Re: How to transfer OneDrive for business to a seperate OneDrive for Business Account..Please help!!

@DD2- Please note that if you opt for a solution using Flow, the account that is used for the OneDrive connections will need access to both the source and destination OneDrive locations.

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

4 REPLIES 4
Super User
Super User

Re: How to transfer OneDrive for business to a seperate OneDrive for Business Account..Please help!!

I would like to suggest that using a tool such as PowerShell to accomplish the file transfers might be more appropriate than using Flow.

 

Also, there are a number of third party tools that can assist you - Sharegate comes immediately to mind and I believe they have a free trial.

 

Scott

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

Scott
Community Support Team
Community Support Team

Re: How to transfer OneDrive for business to a seperate OneDrive for Business Account..Please help!!

Hi @DD2,

 

If you want to transfer files from OneDrive for business account(1) to a seperate OneDrive for Business account(2),

You could refer to steps below to acheive your requirement:

 

1. make sure the connection account in the "List files in folder" action and "Get file content" action are use OneDrive for business account(1).

2.make sure the connection account in the "Create file" action is use OneDrive for business account(2).

 

Image referance:

Capture.PNG 

 

The expression in the "Folder Path" field of "Create file" action as below:

 

first(split(items('Apply_to_each')?['Path'],last(split(items('Apply_to_each')?['Path'],'/'))))

 

 

The expression in the "File Name" field of "Create file" action as below:

last(split(items('Apply_to_each')?['Path'],'/'))

The flow would run successfully as below:

Capture.PNG

 

 

Best regards,

Alice

 

 

View solution in original post

Super User
Super User

Re: How to transfer OneDrive for business to a seperate OneDrive for Business Account..Please help!!

@DD2- Please note that if you opt for a solution using Flow, the account that is used for the OneDrive connections will need access to both the source and destination OneDrive locations.

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

Vshepherd
Level: Power Up

Re: How to transfer OneDrive for business to a seperate OneDrive for Business Account..Please help!!

In the "List files in folder" how did you get the "include sub folders"? I can not ge tthis up at all.

 

Also it will not allow me to to add the "Body" in the "Apply to each".  the only option availble is "value".

 

Has this changed since this solution was made?  Please help!

 

Thanks

 

**On trying again more options appeared.  I have copied the flow yet it fails.  I had to use "List files in root folder" for the rest of the options to be available.**

Helpful resources

Announcements
firstImage

Better Together Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Kudoed Authors
Users online (8,650)