365 SharePoint

How do we download a Sharepoint Folder into Local ?

Regards
Ahmad

Hi @Ahmad_Rais

You cannot download whole folder at once… you have to use a loop to iterate theough all files and recreate the folder in your local. For downloading files you can use download file activity

Cheers

then we cannot download a file if we dont know the name of the file?,

Regards
ahmad

Hi @Ahmad_Rais

You have an activity for each file/folder which will givw you all the files under a folder

https://docs.uipath.com/activities/docs/office365-for-each-file-folder

Cheers

1 Like

can you please proved an example on the structure and what to fill in on the propertis ?

im kinda lost here

regards
ahmad

Hi @Ahmad_Rais

say your url is https://www.sharepoint.com/sites/<sitename>/<drivename>/subfolder1/subfolder2/files.xlsx

Sp url - https://www.sharepoint.com/sites/<sitename>
library/Drivename - <drivename> ( this might be different go to site settings to see the exact name or inspect the elment to see the backend name)
Sub folders - subfolder1
Query - Subfolder2

cheers

Hi @Ahmad_Rais

Check out this video link and thread

Regards
Gokul

Hi @Ahmad_Rais

this is how you will use it

instead of * you can try leaving blank

cheers

Hi ,

it says code access denied ,
or i no longer have access

but i can download if only 1 file using find files and folder
then using download flle activity

Regards

Hi @Ahmad_Rais

You might not be having access to the sub folders thats is the folder in which the final folder is present . Office 365 needs it because if you want to download a file from folder x then you should have permissions to one folder down for folder x

Cheers

i have check the access , and i do have it,

dows it have any connection with Api Permission ?,
i only use graph Delegated Permission.

regards
ahmad

Hi @Ahmad_Rais

Say your folder structure is folder1/folder2subfolder1/subfolder2/subfolder3/file.xlsx

And if you want to run for each file/folder on subfolder3 then you need to have complete access starting from subfolder1 as to get the item

Can you show or share the actual workflow please

Cheers

Hi ,

the full acess is edit access right?

thanks

Hi @Ahmad_Rais

Yes edit access is the full access…

Cheers

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