Newer Version Available

This content describes an older version of this product. View Latest

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 Details
actionType
Type
String
Description
Required.
The type of action to be performed on the selected measure.
Valid values are:
  • DecreaseBy
  • IncreaseBy
  • ReplaceWith
forecastReferenceId
Type
String
Description
Required.
The ID of the advanced account forecast set use record or advanced account forecast set partner record to be updated.
isPercent
Type
Boolean
Description
Required.
Specifies whether the values are a percentage (true) or not (false).

The default value is false.

listViewId
Type
String
Description
Required.
The ID of the list view record that contains the filtered forecast fact records to be updated.
measureFieldName
Type
String
Description
Required.
The API name of a measure field on the list view object to be updated in the forecast records.
value
Type
String
Description
Required.
The value to use to update the measure.

Outputs

Output Details
errors
Type
List<String>
Description
A list of error messages if the operation fails.
isSuccess
Type
Boolean
Description
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} ]