Input Parameters
Input parameters are external variables the creator can define when designing the Workflow. The user of the Workflow is asked to enter these values before executing. There are different types of input parameters and can be mandatory or optional, as well as static or dynamic.
Parameter | Type |
---|---|
Text | Textbox |
Long Text | Textbox for longer text |
Number | Textbox |
Single-select | Select one value from a dynamic or static list |
Multi-select | Select multiple values from a dynamic or static list |
Checkbox | True/False |
Date and time | Define a specific or relative date and time |
Connection | Select a connection from a list |
File | File (maximum size is 500MB) |
List | String |
Creating Input Parameters
Creating Input Parameters: Instructions
In the Workflow Editor page, under "INPUT" click +. An "Add a new input parameter" dialog box opens. Here you can create or edit an input parameter.
For each parameter, provide the following values:
- Parameter Name (Mandatory)
- Parameter Type (Mandatory)
Depending on the type selected, enter values accordingly:
- Display Name
- Required Parameter: Select the checkbox
- Placeholder
- Default Value
- Options list mode: (Only for single/multi select) select Static or Dynamic. See Dynamic Options.
Click on the "Add" button. The parameter defined is displayed under "INPUT" section.
Input parameters can be used as part of a Step in the form {{ inputs.my_param }}
. During the Workflow execution {{ inputs.my_param }}
will be substituted with the parameter value as provided by the user.
Input parameters can be used in python scripts as context.inputs[param_name]
.
Dynamic Options
Option lists of single and multi-select input parameters can be set dynamically for On-Demand Workflows. The dynamic options list is taken from a workspace’s Global Variables whenever a user runs a Workflows manually, from the Self-service portal, or from the Slackbot. The global variable should either be in the form of a JSON list (e.g. ["value1", "value2"]) or a comma-separated list (e.g. value1,value2).