Action Output Parameters
An Action can define one or more outputs that are used to communicate information from the Action logic to the user of the Action (Scenario or another calling Action). These output parameters can then be used as inputs for subsequent steps in the Scenario.
When you have a statement in your logic that returns information, you have a choice to store that return value either into a local parameter or an Action output parameter. When you store it into a local parameter, its value is available only while in the same Action. But Action output will return this information to the caller.
For example, consider the statement to get text from an element below,
Create Output Parameter in the Sidebar
You typically create the Output parameter in the statement itself, when storing the return value. But you can also do this from the Action sidebar
- Click on the "Parameters" tab in the sidebar of the Action.
- Click "+" on the Output Parameter listing.
- Type a name and provide a brief description.
Using Output Parameter in a Scenario
Here is an example Scenario, where the output of one step is used as input of another step. You can configure a step parameter to link with an output parameter from a previous step. In this example, "Total Balance" from Step #3 is used as input in Step #6 for validation of the new account balance after the transfer.
Here is an article with complete details on the parameter linking.
Using Output Parameter when calling this Action in another Action
When you call an Action with output parameters, inside another Action, you may assign the output either to a local parameter or to the Output Parameter of the Action which is calling this Action.