Skip to main content

 

Cisco Meraki Documentation

Set Variables

Set Variables

If you want to modify a variable's value, use the Set Variables activity. This activity can be used with global, input, output, and local variables. You can set one variable at a time, or you can update multiple variables in a single Set Variables activity, even if they are different data types. 

The Set Variables activity is located in the Core section of the Activities panel. It can be accessed by navigating the panel hierarchy on the left or by entering "Set Variables" into the search field.

set_variables_updated.jpg

Key Features

  • If a variable is configured as Static, the value you assign persists across workflow runs. This means the value can be updated in one run, and the next time that workflow runs, that Static variable will use the value from the last workflow run. 
  • Use the Set Variables activity to manage multiple variables of different data types at once. Click + Add in the properties panel to include additional variables in one activity block. As shown in the figures below, you can simultaneously configure a dynamic mapping for the Workflow Result and a static Enum selection for the Workflow Result Code.

set_variable_workflow_result_11.jpg

set_variable_workflow_result_code_21.jpg

Configuration Properties

To use this activity, configure the following properties in the Variables section:

  • Variable to Update: Enter the variable name or click the Variable Reference (x) icon to browse and select a variable from the list.
  • New Value: Define the value to be assigned. You can enter a manual value or click the Variable Reference (x) icon to map it to the output of a previous activity.

Note: Clicking the Variable Reference icon opens the Browse Variables window. For more information, see the Variable Browser documentation.

 

  • Was this article helpful?