---
schema_version: "1"
id: e89e54fffb48df029d072fabbdbe139ba78ac9137aa0ee901679695726217bd4
title: Calculate Advanced Account Forecasts Action
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/mfg_api_devguide/actions_obj_calculate_forecasts.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.mfg_api_devguide.meta/mfg_api_devguide/actions_obj_calculate_forecasts.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0c958ad0516620eee6c3f840bc404ba43bb8a9f0fc8abd307121d5ffead3ec0c
description: Calculate forecasts for an account based on the formulae associated with the forecast set.
---
# Calculate Advanced Account Forecasts Action

Calculate forecasts for an account based on the formulae associated with the forecast set.

For more information about calculating forecasts for an account, 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 52.0 and later.

## Supported REST HTTP Methods

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

**Formats:** JSON

**HTTP Methods:** GET, POST

**Authentication:** Authorization: Bearer token

## Inputs

| Input | Type | Description |
| --- | --- | --- |
| accountId | array | The ID of the account record for which to calculate the forecasts. |
| forecastDataId | array | The ID of the forecast data for which the forecast is being calculated. |
| forecastSetId | array | The ID of the forecast set associated with the forecast formulae to be used for calculation. |

## Usage

**JSON Sample Request**

{
   "inputs":\[{
      "forecastSetId":"0ni5sajb8347k3s",
      "accountId": "0yAxx00004000002AAA",
      "forecastDataId": "0r4ft8941574TRE78V"
   }\]
}

**JSON Sample Response**

\[
{
   "errors":null,
   "isSuccess":true
}
\]