Skip to main content
Roberty Studio
RPAMy robot

Define subroutine inputs

Define subroutine inputs

Defines the current sub-routine's input fields, making them available as parameters when it is called through Call a sub-routine. Each input you define appears as a fillable field in the calling robot.

Sub-routines only

This action only appears in the menu when what you are editing is a sub-routine. In an ordinary robot it is not shown.


Options​

The sub-routine's input​

The list of input fields the sub-routine accepts. Each input has:

  • Input name — the field's identifier. It has to be unique in the list and must not clash with the names of other actions in the designer.
  • Type — the kind of data expected:
    • text — plain text.
    • number — a numeric value.
    • boolean — true or false.
    • action — the output of an action of a particular type (which you then have to select).

Returns​

Javascript code​

js
actions["action-id"]["input-name"] // the value the input field received (type set by the input)

Field selection​

The fields you define are available as outputs inside the sub-routine itself, so the actions that follow can use the values the calling robot sent.

Rules and conditions​

  • The save button stays blocked while any field has a blank Input name or Type.
  • Input names have to be unique — duplicates are rejected automatically.
  • An input's name cannot match the identifier of an action already in the designer.
  • With type Action selected, you have to say which kind of action will be received.
  • Put this action at the start of the sub-routine's flow, so the fields are available from the beginning.