Saving the document to a "Downloaded files". Help

Hi,

I’m not sure is this the right place to ask but I’m grateful for help. I tried to search but maybe I don’t know even the right terms to search for.

I would like to get my app to save a document always to a “downloaded files” folder.
Now I have the filepath there but I would like to get it to be dynamic(is that the right word?). So if I export my app and someone uses it from their computer the program would be able to save the documents to the downloaded files folder in their machine.

Thank you.

when it is about the Download Folder from the account we can use:
grafik

Unfortunately the download folder is not offered as SpecialFolder option so we hard coded it

I tried it but I sadly got this
“Argument ‘FilePath’: BC30451: ‘Enviroment’ is not declared. It may be inaccessible due to its protection level. Variable ‘FilePath’ is missing. Please use Data Manager to recreate it.”

please share with us a screenshot from your modeling. thanks

also check for the type: Eviroment vs Environment

Oh no it was the missing “n” :expressionless: and I thought I already checked it. Now it works!
Thank you!

@Hanne
Perfect, so you can close the topic by marking the helping post
Forum FAQ - How to mark a post as a solution - News / Tutorials - UiPath Community Forum

Sadly I noticed that I was wrong yesterday and the program is not really working.

I have Word Application Scope and I tried to put the variable containing this Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), “Downloads”) to the path.
Then I would like to add the document name after that but I’m not sure how…
I tried to use + documentNameVariable+“.docx” which was not working of course.
Is there anything I could do to make the program understand what I want?

Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads", documentNameVariable + ".docx")

Now it’s really working.

Thank you, again!

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