I have already successfully established the connection to SharePoint using the SharePoint URL in UiPath, and authentication is working fine.
Now I need to upload multiple files from a local folder to a SharePoint document library using only the Modern Microsoft OneDrive & SharePoint activities.
Could someone please provide a clear, step-by-step workflow for this requirement using the Modern activities?
Specifically, I am looking for:
The correct activities to use
The exact arguments / properties to be passed
The proper way to handle multiple files
Any known limitations or best practices with Modern activities for this scenario
My goal is to have a stable and production-ready design for uploading multiple local files to SharePoint.
Use Microsoft 365 Scope > Use OneDrive & SharePoint > For Each File in Folder > Upload File inside the loop for a reliable upload of multiple local files to SharePoint library.
Add Try Catch for errors; Delay 2s per file to avoid throttling.
File limit: No batch cap, but <100/run ideal; supports 250GB max.
Expression i used : Directory.GetFiles(âin_OutLocalFolderâ).Select(Function(x) ILocalResource.FromPath(x))
Error Iâm getting
Argument âMultipleFilesToUploadâ: BC30561: âDirectoryâ is ambiguous, imported from the namespaces or types âSystem.IO, Microsoft.Graphâ.