---
title: "Metadata (Global Variables) Knowledge Base Article | ThreatConnect"
slug: "metadata-global-variables"
description: "This article describes the Metadata option on the side navigation bar of the Playbook Designer."
updated: 2022-08-30T13:30:51Z
published: 2022-08-30T13:30:51Z
canonical: "knowledge.threatconnect.com/metadata-global-variables"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://knowledge.threatconnect.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Metadata (Global Variables)

The ![Icon Description automatically generated](https://cdn.document360.io/dfc206c8-1c9f-4725-b74d-a66f83432320/Images/Documentation/metadata-global-variables-image-bfqx2983.png) **Metadata** button opens a pane containing global variables accessible to any Trigger, App, Operator, or Component within a Playbook (Figure 1). Global variables are ad-hoc user-defined variables that are created at the Playbook level. These variables can be set, updated, and referenced anywhere in the Playbook, even inside nested Components and Iterators. They provide an easy way to track settings, counts, and other important information throughout a Playbook’s execution.

NoteThreatConnect provides a set of global variables that apply across all Playbooks in an Organization. User-generated global variables in the **Metadata** pane apply only to the Playbook in which they are defined.

![](https://cdn.document360.io/dfc206c8-1c9f-4725-b74d-a66f83432320/Images/Documentation/metadata-global-variables-image-6odw0vhm.png)

To create a global variable, open the **Metadata** pane and then click ![](https://cdn.document360.io/dfc206c8-1c9f-4725-b74d-a66f83432320/Images/Documentation/metadata-global-variables-image-4p6aek5c.png) **Create Global Variable.** The **Metadata**configuration pane will be displayed (Figure 2).

![](https://cdn.document360.io/dfc206c8-1c9f-4725-b74d-a66f83432320/Images/Documentation/metadata-global-variables-image-stjyqbqi.png)

- **Name**: Enter a name for the global variable. The name may not contain any spaces.
- **Read Only**: Select this checkbox to prevent the variable from being edited.
- **Type**: Select a variable type from the dropdown menu. Available types are **String**,**StringArray**, and **Binary**.
- **Value * (*<type>*)**: Enter a value for the global variable in the text field.ImportantThe only accepted input format for the **StringArray** type is a JSON StringArray.
- **Upload**: Toggle the **Upload**switch on to upload a file to define the global variable.

The **Interactive Mode**setting of the **Playbook Designer**has a **Variable Explorer** that shows the values of all ThreatConnect and user-defined global variables. See [*Variable Explorer*](/v1/docs/variable-explorer) for more information.

## Update Global Variable App

If a user-generated global variable was not set as **Read Only**during configuration,****the variable can be updated within a Playbook by using the **Update Global Variable**App. This App allows you to define another value that should replace the initial value of the global variable.

To add the App to a Playbook, navigate to the **Apps**pane in the side navigation bar and search for the App, which is in the **Utility** category (Figure 3).

![](https://cdn.document360.io/dfc206c8-1c9f-4725-b74d-a66f83432320/Images/Documentation/metadata-global-variables-image-fkidjpk4.png)

Click the App in the list to add it to the design pane. Then double-click on the App in the design pane to open the **Edit App**configuration pane (Figure 4).

![](https://cdn.document360.io/dfc206c8-1c9f-4725-b74d-a66f83432320/Images/Documentation/metadata-global-variables-image-fbv9kji3.png)

- **Job Name**: Enter a descriptive name for the App.
- **Variable**:
  - **Operation**: Select the type of operation to change the variable’s value: **Set**, **Increment**, **Decrement**, **Push**, **Pop**, or **Clear**.
  - **Variable**: Enter the name of the variable to be updated by using the formula **#gbl.*<name of Global Variable>*** (**#gbl.test.string**in this example).
  - **Value**: Enter the new value for the Global Variable (**vdinkley**in this example).
- Click the **SAVE**button.

---

*ThreatConnect® is a registered trademark of ThreatConnect, Inc.*

20110-16 v.02.B
