UiPath Studio Guide

Managing Arguments

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.

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.

Creating Arguments

Note:

Argument names should be in upper CamelCase with a prefix stating the argument direction, such as in_DefaultTimeout, in_FileName, out_TextResult, io_RetryNumber. You can check out our Workflow Design Naming Conventions recommendations for more details.

From Activity Text Fields

  1. From the Activities panel, drag-and-drop an activity to the Designer panel. Right-click a text field and select Create In Argument or Create Out Argument from the context menu. Alternatively, press Ctrl+M or Ctrl+Shift+M. The Set Arg field is displayed.
  2. Fill in the name and press Enter. The argument is created and visible in the field. Check its direction and type in the Arguments panel.

From the Properties Panel Context Menu

  1. In the Properties panel of any activity, right-click a field that can be edited, and select Create In Argument or Create Out Argument from the context menu. Alternatively, press Ctrl+M or Ctrl+Shift+M. The Set Arg field is displayed.
  2. Fill in the name and press Enter. The argument is created and visible in the field. Check its direction and type in the Arguments panel.

From the Arguments Panel

  1. In the Designer panel, click Arguments. The Arguments panel is displayed.
  2. Click the Create Argument line, and fill in the name. A new argument is created.

Note:

By default, all arguments are of String type and have an In direction.

Removing Arguments

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.


Managing Arguments


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.