Use Directory.GetFiles(“C:\LocalFolderPath”) to get all the files from the folder, then loop through each file with a For Each activity. Inside the loop, use the OneDrive Upload File activity, setting the File Path to the current file in the loop and the OneDrive Folder Path to your desired destination folder on OneDrive. This will upload all the files to OneDrive.
For More:
files = Directory.GetFiles(“C:\LocalFolderPath”)
For Each filePath In files
OneDrive Upload File
- File Path: filePath
- OneDrive Folder Path: “Documents/UploadFolder”
Next