Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Recalculate Forecasts Action

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

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

Note

For more information about recalculating actual values of an active sales agreement, see Use Manufacturing Actions in Flow Builder and Process Builder 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 Details
userId
Type
ID
Description
The ID of the user. An email is sent to this user when the action is complete.
forecastId
Type
string
Description
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:
1{
2"inputs": [{
3   "userId":"005xx000001X7QLAA0",
4   "forecastId":"0yAxx0000000001EAA"
5   }]
6}
Sample Request to recalculate all account forecasts
The following example shows how to recalculate all account forecasts:
1{
2"inputs": [{
3   "userId":"005xx000001X7QLAA0",
4   "forecastId":"ALL"
5   }]
6}