Download sharepoint folder - How?

Hi all,

I have already tried several options to try to download a complete folder in SharePoint. The 365 permission is ok but the “download file” activity is not able to download folders. Can anyone tell me how I can download an entire folder or at least all the files inside that folder?

I searched some topics and tried something, like this topic here - https://forum.uipath.com/t/how-to-specify-location-on-download-file-onedrive-activity-on-the-non-classic -activity/744405/4 -

The closest logic would be to download the file and find it through LocalPath, but it didn’t work for me yet.

Tnk and regards

@Meu_Eu_Nando

First thing you can ot download a folder directly

Now what you can do is use for each file activity

If you are not using integration services then can go with find files and give only subfolder details and leave wuery emtpy so that all files from the given folder are retrieved can use for loop and download inside

As per error you tried downloaded folder and not file

Cheers

1 Like

You can refer to this video:
UiPath Integration with SharePoint Download File from SharePoint, Upload File in SharePoint Folder (youtube.com)

2 Likes

-Get the List of Files in the Folder
Use the Find Files and Folders activity inside the Office365 Scope to get all files in the target SharePoint folder.
Set the folder path of the SharePoint library.
Filter the results if necessary
-Download Files from SharePoint
Loop through each file using a For Each activity.
Inside the loop, use the Download File activity to download each file from the SharePoint folder to your local directory.

1 Like

Thanks!

That is the solution.

I mean, it should have a way to download the folder by the metadata or something.
But downloading the files inside the folder works.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.