---
schema_version: "1"
id: d026a33059708511e8f8c19aadd29287d1b05e12689f873f097bfd874591b1da
title: Get Forecast Context Action
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/flow_ref_elements_actions_forecast_context.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.flow_ref_elements_actions_forecast_context.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f7eaa47ac90678a89296a6c09c707539d958ea5fcf164ab73b54f5b03ae06578
description: Get forecast context for a specific user. To be used in the Forecast Guidance flow as part of the Get Forecast Guidance standard agent action.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Get Forecast Context Action

Get forecast context for a specific user. To be used in the Forecast Guidance flow as part of the Get Forecast Guidance standard agent action.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.flow_ref_supported_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Flow Builder. Some Flow Builder features integrate with other Salesforce products that require additional licenses.">View supported editions.</a></td></tr></tbody></table>

In Flow Builder, add an Action element to your flow. In the New Action window, search for Get Forecast Context, and then select **Get Forecast Context**.

## Set Input Values

Use values from earlier in the flow to set the inputs for the action. 

 
| Field | description |
| --- | --- |
| **User ID** | The ID of the user to provide forecasting context for.  |

## Store Output Values

 
| Field | description |
| --- | --- |
| **Can Access Target User Forecasts** | A Boolean value that indicates whether the running user has access to the specified user’s forecasts. |
| **Current Period ID** | The ID of the period that the forecasting context applies to. |
| **Cumulative Forecasts**  | A Boolean value that indicates whether the Cumulative Forecasts setting is enabled. |
| **Most Likely** | A Boolean value that indicates whether the Most Likely setting is enabled.  |
| **Commit Label** | The label that was used for the commit category. |
| **Most Likely Label** | The label that was used for the Most Likely category. |
| **Opportunity Score** | A Boolean value that indicates whether the Opportunity Score setting is enabled. |
| **Push Count** | A Boolean value that indicates whether the Push Count setting is enabled. |
| **Domain URL** | The URL to use to generate links to user and opportunity forecast contexts. |

## Usage

The Get Forecast Context action is a part of the Forecast Guidance flow, designed to retrieve forecasting context for a specific user. It's primarily used in conjunction with the Get Forecast Guidance standard agent action.

## Limitations

This action is limited to usage within a flow. It can't be invoked through other methods such as Apex, REST API, Agentforce, Prompt Studio, or Einstein Bots. While actions can typically be invoked through various frameworks like InvocableActionService, this specific action is restricted solely to flows.

#### See Also

- [Copilot Action: Get Forecast Guidance](https://help.salesforce.com/s/articleView?id=ai.copilot_actions_ref_get_forecast_guidance.htm&language=en_US)