Global Variables
Globals are shared values that you can reference in flows, broadcasts and campaigns across your account, using @globals.value_name. They let you create a value once and use it repeatedly without re-entering it. They also make a shared value easier to update: rather than changing it everywhere it's used in your account, you update it once on your Globals page.
Say you have 5 different webhooks in your account that all use the same API key to authorize requests to your admissions system. If you save that key as a global, you can reference it without looking it up every time you create a webhook.

How it works
Our Application Status flow looks up an applicant's status in the admissions system with a Call Webhook action. Every Call Webhook action that calls the admissions API needs the API key in its Authorization header. Saving the key as a global means we don't have to look it up for each one.
Create the global variable
Go to your Flows page and click Globals in the menu on the left.

This opens the Globals page, where you can create and manage your global variables. Click New to create a global.

Enter a name and a value, then click Create. Here we're adding a Housing Portal Key. For an API key, the value is what you would otherwise enter for the Authorization header in a Call Webhook action.

| Note that you can click the usage count next to a global on your Globals page, such as 1 use, to see every flow that uses it. |

Use the global in a flow
Once the API key is saved as a global, we can reference it in the Call Webhook actions in our Application Status flow.

When we create a Call Webhook action, we don't need to type the key itself as the value of the Authorization header under Headers.

Instead, we reference the global with @globals.admissions_api_key. The global is named Admissions API Key, and its expression is shown next to its name on the Globals page.

Any other webhook that uses the same admissions API key can reference the global the same way, so there's no need to look up the key again.
| Note that globals can only be edited on your Globals page, not within flows. |
Questions? Send us a message via the support widget in the bottom right corner of your browser.