Currently, in our UiPath process we are using a common/Shared server path (e.g \ServerName\Folder) to read and write files.
Now we have a new rquirement where files are stored in OneDrivwe instead of common server.
we want to automate the same process using OneDrive as the source and destination .
Could you please suggest:
The best approach to access OneDrive files in UiPath?
Should we used microsoft Graph API,Integration Service or OneDrive Activities?
How to handle authentication securely (Service Account or app registration)?
Any limitations or best practices while using OneDrive in unattended bots?
We are using UiPath studio with windows compatibility and orchestrator.
Any guidance or sample workflow would be really helpful.
Use UiPath Integration Service with the Microsoft 365 connector. Authenticate using a dedicated service account, work with files via download–process–upload using Microsoft 365 activities, avoid local OneDrive sync folders, prefer SharePoint-backed locations, and add retry logic to handle API throttling.
The best way to work with OneDrive in UiPath is to use UiPath Integration Service with Microsoft 365 (OneDrive) activities and Use a dedicated service account for authentication and store credentials in Orchestrator Assets. Download files from OneDrive, process them locally, and upload them back using Microsoft 365 activities.
Or you try with Microsoft Graph also but it mainly used for advanced scenarios, but it requires manual token handling. Avoid using local OneDrive sync folders, as they are not reliable for unattended bots.
Best is to use UiPath Integration Service – Microsoft OneDrive / Microsoft 365 connector as it runs on Microsoft Graph in the background and is much more reliable than syncing OneDrive locally
You can use Microsoft 365 / OneDrive activities inside a Microsoft 365 Scope
Easy to download, upload, move, or delete files directly in OneDrive
o365 integration services is the best way and the recommended way
for authetication you have multiple options but for unattended application scope with app registration would be best way.you security/IT can help with aapproach there are multiple supported ones