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

Sync Onedrive Business to Sharepoint

Hello,

 

I didn't found a solution to my task, or not enough ! A template exists, I want more.

My files are hosted on my Onedrive Business and I want to share all the folders and files on a Sharepoint of my company, the template I found only copying modified files on the root folder.
Do you have a flow to sync all folders and subfolders with files at the good place ?

Thanks of your help

1 ACCEPTED SOLUTION

Accepted Solutions
efialttes
Super User
Super User

Hi!

according to the official documentation 'List files in root folder' "gets the list of files and subfolders in the root folder."

https://docs.microsoft.com/en-us/connectors/onedriveforbusiness/#list-files-in-root-folder

so I guess you will need to filter 'subfolders', assign the filter output as the input to an 'Apply to each', then inide the 'Apply to each' add a 'List files in folder'

https://docs.microsoft.com/en-us/connectors/onedriveforbusiness/#list-files-in-folder

But please also note this operation also "gets the list of files and subfolders in the folder." So you would probably need to do the same again and again and again.

I mean if you have 6 folder levels, you will need to nest 6 'Apply to each'... I think limit is... 8?

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



View solution in original post

2 REPLIES 2
efialttes
Super User
Super User

Hi!

according to the official documentation 'List files in root folder' "gets the list of files and subfolders in the root folder."

https://docs.microsoft.com/en-us/connectors/onedriveforbusiness/#list-files-in-root-folder

so I guess you will need to filter 'subfolders', assign the filter output as the input to an 'Apply to each', then inide the 'Apply to each' add a 'List files in folder'

https://docs.microsoft.com/en-us/connectors/onedriveforbusiness/#list-files-in-folder

But please also note this operation also "gets the list of files and subfolders in the folder." So you would probably need to do the same again and again and again.

I mean if you have 6 folder levels, you will need to nest 6 'Apply to each'... I think limit is... 8?

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Oh la la la la ! That's what we said in France !
I never tought it will be so difficult, because I just saw a drag and drop system. I'm not able to make it. I'll see with my IT.
Thank you

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.

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.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Users online (3,341)