---
schema_version: "1"
id: 97b6b4606ae9ef96aa820f9a2723df7aac0e3b99e96503b0dcfd737ad8e1bbe6
title: Recalculate Forecasts Action
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/mfg_api_devguide/mfg_actions_recalculate_forecast.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.mfg_api_devguide.meta/mfg_api_devguide/mfg_actions_recalculate_forecast.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3de6db5f07e993faf32df2fe20cf3e8f86cf271bbdb4acbe16bc8425f79be133
description: Recalculate forecasts based on orders, opportunity, and sales agreement figures.
---
# Recalculate Forecasts Action

Recalculate forecasts based on orders, opportunity, and sales agreement figures.

![Note](https://developer.salesforce.com/docs/atlas.en-us.mfg_api_devguide.meta/mfg_api_devguide/images/icon_note.png)

#### Note

These actions update the forecast data in your Salesforce org. You must perform a database rollback to undo these actions.

For more information about recalculating actual values of an active sales agreement, see [Use Manufacturing Actions in Flow Builder and Process Builder](https://help.salesforce.com/s/articleView?id=ind.admin_manufacturing_standard_invocable_actions.htm&type=5&language=en_US "HTML (New Window)") in Salesforce Help.

This object is available in API version 47.0 and later for users with Manufacturing Cloud license.

## Supported REST HTTP Methods

**URI:** /services/data/vXX.X/actions/standard/recalculateForecast

**Formats:** JSON, XML

**HTTP Methods:** GET, HEAD, POST

**Authentication:** Authorization: Bearer token

## Inputs

| Input | Type | Description |
| --- | --- | --- |
| userId | ID | The ID of the user. An email is sent to this user when the action is complete. |
| forecastId | string | The ID of the forecast for recalculation. Use ALL to recalculate all account forecasts. |

## Usage

**Sample Request to recalculate one account forecast**

The following example shows how to recalculate one account forecast:

{
"inputs": \[{
   "userId":"005xx000001X7QLAA0",
   "forecastId":"0yAxx0000000001EAA"
   }\]
}

**Sample Request to recalculate all account forecasts**

The following example shows how to recalculate all account forecasts:

{
"inputs": \[{
   "userId":"005xx000001X7QLAA0",
   "forecastId":"ALL"
   }\]
}