Forum Discussion
CoverallDev
Jun 12, 2024Copper Contributor
Windows service on local server needs to consume files from SharePoint folder
I have a Windows Service that needs to consume files from a cloud based SharePoint folder.
I've found lots of info on mapping drives or using sync to make it available in OneDrive but as best I can tell that would only work in the context of a user session.
Is there a way to map a SP folder to a drive in a way that it would be available to that service?
Should I use Power Automate to copy files down instead?
Using PA I would want to pull it down using PA running on the server to minimize firewall config
Thanks in advance!
- There is an option of using WebDav to map a drive, however this is old technology, and the session will timeout.
https://learn.microsoft.com/en-us/sharepoint/troubleshoot/lists-and-libraries/troubleshoot-mapped-network-drives
Power Automate or PowerShell (https://pnp.github.io/powershell/cmdlets/Get-PnPFile.html) can be used to copy files down to the File Server.