Mass Update Advance Account Forecast Action

Update a measure of AdvAccountForecastFact records based on filter condition of the selected list view.

For more information about how the massUpdateAdvAccountForecast action calculates the advanced account forecasting, see Use Manufacturing Actions in Flow Builder and Process Builder in Salesforce Help. This action is available in API version 56.0 and later.

To use this resource, you must have the Manufacturing Cloud and Advance Account Forecasting feature are enabled in your Salesforce org. See Enable Advanced Account Forecasting.

Special Access Rules

Supported REST HTTP Methods

URI: /services/data/vXX.X/actions/standard/massUpdateAdvAccountForecast

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer token

Inputs

Input Type Description
actionType String Required.

The type of action to be performed on the selected measure. Valid values are:

  • DecreaseBy
  • IncreaseBy
  • ReplaceWith
forecastReferenceId String Required.

The ID of the advanced account forecast set use record or advanced account forecast set partner record to be updated.

isPercent Boolean Required.

Specifies whether the values are a percentage (true) or not (false).

The default value is false.

listViewId String Required.

The ID of the list view record that contains the filtered forecast fact records to be updated.

measureFieldName String Required.

The API name of a measure field on the list view object to be updated in the forecast records.

value String Required.

The value to use to update the measure.

Outputs

Output Type Description
errors List<String> A list of error messages if the operation fails.
isSuccess Boolean Indicates whether the operation is successful or not.

Examples

Sample Request

1{"inputs" : [{
2  "actionType": "Increase By",
3  "forecastReferenceId": "0ogT10000000BekIAE",
4  "isPercent": false,
5  "listViewId": "00BT1000000WIUxMAO",
6  "measureFieldName": "custom_measure__c",
7  "value": "1"
8}]}

Sample Response

1[ {
2  "actionName" : "massUpdateAdvAccountForecast",
3  "errors" : null,
4  "isSuccess" : true
5} ]