Saving file using HTTP request

robot
activities
studio
uipath

#1

Hi everyone, I realised that the HTTP Request activity does not allow me to save the file into the directory which I created using “Create Directory” activity. It will show an error message where access to the folder path is denied.
Does anyone have an idea on this issue? Thanks


#2

Hi @Jun_Wei

Could you provide a sample project and more information (Studio version, activity package version)?
It would help a lot to debug the issue.

I had trouble recreating it, see the below example that should work :slight_smile:
DownloadingImageToNewFolder.zip (2.1 KB)


#3

Hi, thanks for the fast reply. My studio version is 2018.3.2 community edition. Thanks. I could not see the activity below create directory.


#4

image


image


#5

Hi thanks for the info, manged to get it :smile:


#6

Awesome :slight_smile: Happy to help.


#7

Hi, sorry to trouble you again. How can i insert the .pdf into the directory like this:
New directory + Now.ToString(“dd MMMM_yyyy”)? Thanks :grinning:


#8

The ResourcePath is literally a full path to the file you want to download (including the filename).
Thus, you simply have to construct it like this:

"Directory" + Now.ToString(“dd MMMM_yyyy”) + "\yourFileName.pdf"

Paste this into the ResourcePath and it will save the file in the correct directory.


#9

Thank you so much !! :grinning:


#10

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