Create a context variable for a target source
Create a context variable manually if you want to configure more context variables for a target source.
Before you begin
Select the Goal Framework for SPM scope for the application.
Role required: sn_gf.goal_admin
About this task
The Context variable provides information that can be used to fetch the required data and auto-update the Actual value on the target form. After a context variable is created for the target source, the goal user can configure the Actual Value Source Configuration section on the Target form so that the Actual value gets auto-updated.
Creating a context variable is similar to creating a column on a table.
To create a context variable for the target source type PA Indicator and the breakdown is of Choice list type, see Create a context variable for a PA Indicator target source.
Procedure
-
Navigate to All > Enterprise Goal Management > Target Sources.
-
Open the required target source that you want to create a context variable for.
-
In the Context Variables related list, click New.
-
On the form, fill in the fields.
For a description of the field values, see Context Variable form.
-
Click Submit.
Parent Topic:Configuring target source for target automation
---
title: Create a context variable for a target source
description: Create a context variable manually if you want to configure more context variables for a target source.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/it-business-management/scenario-planning-in-spw/create-context-variable-for-a-target-source-apw.html
release: australia
product: Scenario Planning in SPW
classification: scenario-planning-in-spw
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [Configuring target source for target automation, Configuring goals in Strategic Planning, Configure, Portfolio Planning in Strategic Planning Workspace, Strategic Planning, Strategic Portfolio Management]
---
# Create a context variable for a target source
Create a context variable manually if you want to configure more context variables for a target source.
## Before you begin
Select the Goal Framework for SPM scope for the application.
Role required: sn\_gf.goal\_admin
## About this task
The Context variable provides information that can be used to fetch the required data and auto-update the Actual value on the target form. After a context variable is created for the target source, the goal user can configure the Actual Value Source Configuration section on the Target form so that the Actual value gets auto-updated.
Creating a context variable is similar to creating a column on a table.
To create a context variable for the target source type PA Indicator and the breakdown is of Choice list type, see [Create a context variable for a PA Indicator target source](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-business-management/scenario-planning-in-spw/create-context-variable-for-a-target-source-type-pa-indicator-apw.md).
## Procedure
1. Navigate to **All** > **Enterprise Goal Management** > **Target Sources**.
2. Open the required target source that you want to create a context variable for.
3. In the Context Variables related list, click **New**.
4. On the form, fill in the fields.
For a description of the field values, see [Context Variable form](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-business-management/scenario-planning-in-spw/context-variable-form-apw.md).
5. Click **Submit**.
**Parent Topic:**[Configuring target source for target automation](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-business-management/scenario-planning-in-spw/setting-targets-for-a-goal-and-automating-the-actual-value-using-agf-apw.md)
| title | Create a context variable for a target source |
| description | Create a context variable manually if you want to configure more context variables for a target source. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/it-business-management/scenario-planning-in-spw/create-context-variable-for-a-target-source-apw.html |
| release | australia |
| product | Scenario Planning in SPW |
| classification | scenario-planning-in-spw |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | Configuring target source for target automationConfiguring goals in Strategic PlanningConfigurePortfolio Planning in Strategic Planning WorkspaceStrategic PlanningStrategic Portfolio Management |