Skip to main content

 

Cisco Meraki Documentation

Global Large String Variable

Feature

For strings up to 1 MB, use the standard String variable type. For larger strings that you need to pass between activities in a workflow, use Large String, which supports values up to 10 MB.

For example, if an HTTP request returns a large JSON response body, use the core Set Variables activity to assign the response body to a Large String variable. You can then reference that variable in subsequent activities.

Usage

Follow the Global Variables Documentation and select Large String as the variable type.

Setting the value of a global large string variable

When creating or editing the variable

Click Upload and select a text file containing the value you want to store. The file must be 10 MB or less.

You can also create a Global Large String variable without a value and populate it later.

 

create_global_large_string.png

Using the core Set Variables activity

Use the core Set Variables activity to populate or update the variable during workflow execution. For instructions, see the Set Variables documentation.

Appending to a Global Large String variable

Use the core Set Variables activity to append content to a Global Large String variable. Select the variable as the value, then enter the content to append. The content is added to the variable’s existing value.

The 10 MB size limit applies to the resulting value.

Importing, Exporting and Exchange

Global Large String variable definitions are supported when you import or export a workflow or install one from Exchange. Their values, however, are not transferred.

If the workflow requires an initial value, upload it before running the workflow. Alternatively, use the core Set Variables activity to populate the variable during execution.

Warnings about empty Global Large Strings

When a workflow references Global Large String variables without values, a warning banner appears at the top of the workflow editor.

Click Upload to provide values for the variables that need them. You can upload values for some or all of the listed variables.

If the variables are intentionally empty, for example, because the workflow populates them during execution, you can dismiss the warning.

 

global_large_string_warning.png

  • Was this article helpful?