Variables

The Desktop Automation workflow can take input from a website robot and use the same variable types with some additions.

  • You can use a complex variable and its attributes as input to the Desktop Automation workflow.

  • You can use all complex types from your project except variables that contain Date, Currency, Country, and Language fields to create Record variables in the Desktop Automation workflow.

    Record variables are based on the record types (complex variables) that a robot uses. A record type is a data type that can be defined as a set of fields, represented by any possible value and variable of that type.

    For example, for the Credentials record type, a value is named «Credentials», where a username is "Joe" and a password is «Password. » This information is represented in the State view. If there is a variable of Credentials type (for example, userCred), then you can change the value of this by assigning another value (for example, "Tom") to userCred.username in the Assign step. This changes the value of the variable to «Credentials», where a username is now "Tom " and a password is «Password. »

  • You can assign record variables of the same record type to each other.

  • You can assign attributes of Record variables to values with the same type or to another attributes or simple variables with the same type.

    Note All the shortcut menus in the Recorder view that use variables let you choose a field from Record type variables.

    For example, the Enter Text can get its value from fields of complex variables and if the type of the selected variable is not text, a conversion function is inserted to convert the value to text. Variables and fields of types that cannot be converted to text do not appear in the list.

    For the extract step you can also extract to fields of complex variables, but the type of the field must match the type of the extracted data, such as text or binary (for images). Only variables of the correct type appear on the menu.

  • You can edit existing variables without resetting the execution state of the workflow.

  • You can create new variables from the context menu without interrupting your work and scrolling to the variables section.

  • Date type variables from a website robot cannot be used as input in the Desktop Automation robot.

  • Local variables can be created and used only in Group Steps. If you want your step to use a local variable, include the step into the group with the local variable.
  • Password type variables in Desktop Automation can transfer their value from and to a password type variable created in a website robot. You cannot manually assign a value of the password type variable in the Desktop Automation workflow.

The following is a list of variable types available by default with their initial values.

  • Binary: Empty
  • Boolean: false
  • Integer: 0
  • Number: 0.0
  • Password: Empty
  • Text: ""