I’m working my way past the Level 1 Foundation training Lesson 2 Control Flow Loops and found a strange situation.
I had already created a project, so to do these lessons, just added a new sequence under the project. In trying to create the example in the Lesson where it gets the files in a directory and puts them in the output, UIPath wasn’t recognizing Directory. It seemed as if it needed a using statement but I could find no place to do that.
After a lot of messing around with it and it not working, even listening to that portion of the training video several times, I went and did it in the main.xaml that is created upon project creation. And it worked. Why? Why does an added sequence/flow not have those basic functions built into them? Is this the case? And if so, how do I add them to a new one I created?
tl;dr How do I include File.IO to sequences or flows other than the first Main in the project?