How to Specify Location on 'Download File' OneDrive Activity on the non-Classic Activity

There is no ‘Download Location’ property on my ‘Download File’ OneDrive activity. When I use the classic activity I can specify where I want the file to be downloaded in the Properties panel, but on the newer activity the only properties I seem to have are the option to convert to PDF and naming the output variable.

1 Like

@aack,

In UiPath.MicrosoftOffice365.Activities.Files.DownloadFile activity we do have Download Location

Can you show the activity you are using?

Thanks,
Ashok :slight_smile:

I am using UiPath.MicrosoftOffice365.Activities.Files.DownloadFileConnections. The UiPath.MicrosoftOffice365.Activities.Files.DownloadFile is in the Office 365 - Classic package, not the newer one, so don’t think it’s compatible with the integration service as the UiPath.MicrosoftOffice365.Activities.Files.DownloadFileConnections appears to be.

@aack,

Surprisingly we don’t have much documentation about it but try these two properties of Output Variable.

LocalPath
FullName

As per my understanding, the activity downloads the file to some temp folder like our Outlook attachments gets stored.

We will have to explicitly copy the file from that Temp folder to desired location. Sorry, I don’t have O365 integration to validate this but one of these property should have the local path of the file.

Thanks,
Ashok :slight_smile:

@aack

In the modern activities you dont have option specify as it is developed keeping in mind the cross plat form activities as well which would run on linux machines as well

Basically you need to use the output variable to find the path and then can copy to the location you need and rename

Output.LocalPath would give you the path where it is downloaded

Hope this helps

Cheers

1 Like

The activity should download the file to C:\Users\username\AppData\Local\Temp. But two important points:

  1. it downloads the file with a random name, and
  2. UiPath deletes the file after the process stops running

So even if you are able to find the temp folder and temp file, you can’t, and shouldn’t, use the temp file. If you need a permanent copy of the file, use the .LocalPath and Copy File as suggested above.

1 Like

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