From the course: Complete Guide to UiPath RPA Development

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Variables as the output of activities

Variables as the output of activities - UiPath Tutorial

From the course: Complete Guide to UiPath RPA Development

Variables as the output of activities

- [Instructor] Now let's talk quickly about variables as the output of other activities. We've seen this in a previous lecture where when I click in here and type in read text, for example, and drag Read Text File into my sequence, I can click in here, open Double Quotes, and provide a path to a text file, and then the important thing is over here in the Properties area, in this Output property, this expects a variable to hold the contents of the file that it reads. So, if I click in here and either right-click or use CrtlK, I can create a new variable here called, whatever you want, I'll call mine FileContents and hit Return. And notice when I hit Return, that variable was also created down here in the Variables panel, and it's a string. If I want to, I can put in a default value, but usually for a Read Text File, I wouldn't do that. So, now, of course, I can select and CrtlC and use that variable somewhere in my workflow by grabbing any kind of activity, like Log Message or…

Contents