---
schema_version: "1"
id: b4ecd640b7eb393946d4470716797a201236f5d7d56630140de0eac996561fc7
title: Mass Update Advance Account Forecast Action
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/mfg_api_devguide/actions_mass_update_advaccount_forecast.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.mfg_api_devguide.meta/mfg_api_devguide/actions_mass_update_advaccount_forecast.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 09b22d24f7644a88a725d371c0ca1ea765bc35f3834955db25d8f6f2ae8a51dd
description: Update a measure of AdvAccountForecastFact records based on filter condition of the selected list view.
---
# 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](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 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](https://help.salesforce.com/s/articleView?id=sf.aaf_admin_enable.htm&language=en_US).

## 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

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d36e104">Input</th>

              <th class="featureTableHeader  " id="d36e107">Type</th>

              <th class="featureTableHeader  " id="d36e110">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d36e104" data-title="Input"><span class="keyword parmname">actionType</span></td>

              <td class="entry" headers="d36e107" data-title="Type">String</td>

              <td class="entry" headers="d36e110" data-title="Description">Required.<p class="p">The type of action to be performed on the selected measure. Valid values are:</p>

                <ul class="ul bulletList">
                  <li class="li"><samp class="codeph nolang">DecreaseBy</samp></li>

                  <li class="li"><samp class="codeph nolang">IncreaseBy</samp></li>

                  <li class="li"><samp class="codeph nolang">ReplaceWith</samp></li>

                </ul>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d36e104" data-title="Input"><span class="keyword parmname">forecastReferenceId</span></td>

              <td class="entry" headers="d36e107" data-title="Type">String</td>

              <td class="entry" headers="d36e110" data-title="Description">Required.<p class="p">The ID of the advanced account forecast set use record or advanced account
                  forecast set partner record to be updated.</p>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d36e104" data-title="Input"><span class="keyword parmname">isPercent</span></td>

              <td class="entry" headers="d36e107" data-title="Type">Boolean</td>

              <td class="entry" headers="d36e110" data-title="Description">Required.<p class="p">Specifies whether the values are a percentage (<samp class="codeph nolang">true</samp>) or not (<samp class="codeph nolang">false</samp>).</p>

                <p class="p">The default value
                  is <samp class="codeph nolang">false</samp>.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d36e104" data-title="Input"><span class="keyword parmname">listViewId</span></td>

              <td class="entry" headers="d36e107" data-title="Type">String</td>

              <td class="entry" headers="d36e110" data-title="Description">Required.<p class="p">The ID of the list view record that contains the filtered forecast fact records to be
                  updated.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d36e104" data-title="Input"><span class="keyword parmname">measureFieldName</span></td>

              <td class="entry" headers="d36e107" data-title="Type">String</td>

              <td class="entry" headers="d36e110" data-title="Description">Required.<p class="p">The API name of a measure field on the list view object to be updated in the forecast
                  records.</p>
              </td>

            </tr>

            <tr>
              <td class="entry" headers="d36e104" data-title="Input"><span class="keyword parmname">value</span></td>

              <td class="entry" headers="d36e107" data-title="Type">String</td>

              <td class="entry" headers="d36e110" data-title="Description">Required.<p class="p">The value to use to update the measure.</p>
              </td>

            </tr>

          </tbody>

        </table>

## 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**

{"inputs" : \[{
  "actionType": "Increase By",
  "forecastReferenceId": "0ogT10000000BekIAE",
  "isPercent": false,
  "listViewId": "00BT1000000WIUxMAO",
  "measureFieldName": "custom\_measure\_\_c",
  "value": "1"
}\]}

**Sample Response**

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