Forum Discussion
Automating File Sync Using OneDrive to SharePoint
Hello Experts,
We are trying to automate the file synchronization from 1 system to SharePoint. We are planning to configure OneDrive for synchronizing files to SharePoint. There is one script which reads files from another system and will paste in the locally synchronized document library (Using OneDrive or business) for our SharePoint online portal.
There is no defined time period where the files will get pasted from the script and hence we are planning to go with OneDrive synch which will push data to SharePoint document library. Will this architechture work? I mean will there be any challenges if we try to automate the file copying to OneDrive Synched folder (like authentication / cookie expiry etc.).
Thanks in advance.
Arjun.
8 Replies
- SanthoshB1Bronze Contributor
Hi, you can use Microsoft Flow to achieve this easily. See the below discussion thread which shows you the sample flow to sync SharePoint Doc lib to OneDrive. Similarly you can use it for OneDrive to SharePoint. HTH.
- Arjun MenonCopper Contributor
Thanks SanthoshB1 for the response. I guess the lead which you had shared would create replica of the files which are newly created in Document Library. What I was looking is the other way.
Basically there will be a script which reads data from other system and will push to SharePoint. The source system will also have the same hierarchy / folde structure as that of SharePoint. Hence I was thinking if we could automate the process using OneDrive, we don't need to depend on any kinds of scripting which will cause the maintenance overhead later.
Correct me please if my understanding is wrong.
- SanthoshB1Bronze ContributorDo you refer migration from your Local system to SharePoint? or does it mean any other service?
- Salvatore BiscariSilver Contributor
Be aware that, in Windows, NGSC only runs when the user is logged in, and not as a service.
Also, sometimes the user credentials need to be refreshed.
And sometimes you even have to enter admin credentials to refresh the icon overlays.
In other words, your solution cannot run unattended in a reliable way.
You should use instead a third party solution.
- Arjun MenonCopper Contributor
Thanks Salvatore Biscari for the response. We were looking for some automating mechanism for synchronizing files.