Create a flow variable
Create a flow variable to store and retrieve a value throughout a flow.
Before you begin
Role required: flow_designer or admin
Procedure
-
Navigate to All > Process Automation > Flow Designer.
-
Click New > Flow.
-
On the Flow Properties form, fill in the fields.
For more information, see Create a flow in Workflow Studio.
-
Click Submit.
-
Click the more actions icon ([Omitted image "more-actions-menu-icon.png"] Alt text: More actions menu) and select Flow Variables.
-
In the upper-right side of the Flow Variables form, click the plus icon ([Omitted image "plus-icon.png"] Alt text: Plus icon.) to create a variable.
-
On the form, fill in the fields.
Field Description Label Unique label for the variable. It can consist of any text. The label is visible to the user. Name Unique name for the variable. Displays the name used to identify the variable in script calls. The name can only consist of alphanumeric and underscore characters. The system automatically converts the label into a valid name by removing or replacing any special characters. The name is not visible to the user, it's what the system uses behind-the-scenes. Type Data type for the variable. -
Click Save.
Result
The Data panel displays the variable in the Flow Variables section. It appears as a data pill, with its name and type.
What to do next
To assign a value to the variable, use the Set Flow Variables flow logic. If you don't assign a value, the default value is null.
Parent Topic:Flow variables
---
title: Create a flow variable
description: Create a flow variable to store and retrieve a value throughout a flow.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/build-workflows/workflow-studio/create-flow-variables.html
release: australia
product: Workflow Studio
classification: workflow-studio
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Variables, Build flows, Flows, subflows, and actions, Workflow Studio, Build workflows]
---
# Create a flow variable
Create a flow variable to store and retrieve a value throughout a flow.
## Before you begin
Role required: flow\_designer or admin
## Procedure
1. Navigate to **All** > **Process Automation** > **Flow Designer**.
2. Click **New** > **Flow**.
3. On the Flow Properties form, fill in the fields.
For more information, see [Create a flow in Workflow Studio](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/create-flow.md).
4. Click **Submit**.
5. Click the more actions icon \(\[Omitted image "more-actions-menu-icon.png"\] Alt text: More actions menu\) and select **Flow Variables**.
6. In the upper-right side of the Flow Variables form, click the plus icon \(\[Omitted image "plus-icon.png"\] Alt text: Plus icon.\) to create a variable.
7. On the form, fill in the fields.
|Field|Description|
|-----|-----------|
|Label|Unique label for the variable. It can consist of any text. The label is visible to the user.|
|Name|Unique name for the variable. Displays the name used to identify the variable in script calls. The name can only consist of alphanumeric and underscore characters. The system automatically converts the label into a valid name by removing or replacing any special characters. The name is not visible to the user, it's what the system uses behind-the-scenes.|
|Type|Data type for the variable.|
8. Click **Save**.
## Result
The Data panel displays the variable in the Flow Variables section. It appears as a data pill, with its name and type.
## What to do next
To assign a value to the variable, use the [Set Flow Variables flow logic](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/flow-logic-set-flow-variables.md). If you don't assign a value, the default value is null.
**Parent Topic:**[Flow variables](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/flow-variables.md)
| title | Create a flow variable |
| description | Create a flow variable to store and retrieve a value throughout a flow. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/build-workflows/workflow-studio/create-flow-variables.html |
| release | australia |
| product | Workflow Studio |
| classification | workflow-studio |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | VariablesBuild flowsFlowssubflowsand actionsWorkflow StudioBuild workflows |