Functionality - Variables

Dynamic Variables

Summary

Dynamic variables can be created mid-task with the save statement.

You can use them to:

  • Store the output of a built-in or plugin action
  • Supply the stored output to another action
  • Display the output to the Task Operator

Example

This example asks the Task Operator to select a team from a list.

The choice is saved as a new variable called team.

Saving a Dropdown Choice
1
2
3
4
5
6
7
8
actions:
  - ppa.ui.input_choice:
      text: Please Choose a Team
      options:
        - Engineering
        - Sales
        - Marketing
    save: team

The Using Variables page shows you how to use saved output.