Arguments are used to pass data from a project to another. In a global sense, they resemble variables, as they store data dynamically and pass it on. Variables pass data between activities, while arguments pass data between automations. As a result, they enable you to reuse automations time and again.
UiPath Studio supports a large number of argument types, which coincide with the types of variables. Therefore, you can create Generic Value, String, Boolean, Object, Array, or DataTable arguments and you can also browse for .Net types, just as you do in the case of variables.
Additionally, arguments have specific directions (In, Out, In/Out, Property) that tell the application where the information stored in them is supposed to go.
Argument names should be in upper CamelCase with a prefix stating the argument type, such as
io_RetryNumber. You can check out our Workflow Design Naming Conventions recommendations for more details.
To create a new argument:
- In the Designer panel, click Arguments. The Arguments panel is displayed.
- Click the Create Argument line. A new argument with the default values is displayed.
By default, all arguments are of String type and have an In direction.
To remove an argument:
- In the Arguments panel, select an argument and press Delete.
- In the Arguments panel, right-click an argument and select the Delete option.