Passing File Path Inputted into Create Form (form designer) to variable

Hi everyone, I’m kind of new to RPA and coding (meaning I may not fully understand answers in code but I will try), and would appreciate any advice and explanation for the following issue! :slight_smile:

Currently, I’m trying to extract the file path selected from the Form Designer and save it into a variable so that I can use it to open a file (in the Excel Application Activity or Open Application) later on.

I have tried using the Forms Field Collection as well as variables/arguments to try and capture the indicated file path but have not managed so.
I’m also considering watching some videos and trying out the Deserialise JSON activity to try and get the file path.

Once again, I’d appreciate any advice available.
Thanks for taking the time to look at this! :smiley:

Hello @kelly!

It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.

First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

  1. Always search first. It is the best way to quickly find your answer. Check out the image icon for that.
    Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

  2. Topic that contains most common solutions with example project files can be found here.

  3. Read our official documentation where you can find a lot of information and instructions about each of our products:

  4. Watch the videos on our official YouTube channel for more visual tutorials.

  5. Meet us and our users on our Community Slack and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly
Forum_Staff

Hi @kelly,
Welcome to the Community!
You are very close :slight_smile: You element with path have it’s own name right. You need to assign it as an output argument for fields collection exactly.


You can try to work with In/Out direction to test it :slight_smile:

Alright, thank you @Pablito ! I think I just had to ensure that the VB expression field in the fields collection was the same as my variable. Perhaps I also had too many variables causing confusion as I had one as a variable and one as an argument…

So it would be something like this. :slight_smile:

Once again thanks!

1 Like

Exactly! You got it right! :slight_smile: I’m glad that I could help you.

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