---
schema_version: "1"
id: cbbbc33e2831857f883bce8a848a29924dd02dd4243d4ea4d0e1a9040153f096
title: Update Advanced Account Forecast Set Partner Action
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/mfg_api_devguide/actions_obj_update_adv_forecast_setpartner.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.mfg_api_devguide.meta/mfg_api_devguide/actions_obj_update_adv_forecast_setpartner.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d1e80602a3012872969ed779bd6bd0045fd130eaf2b7916ac6eed8a8a531cc4c
description: Updates the status of the Advanced Account Forecast Set Partner record after the forecast data for a given combination of account and forecast set has been generated.
---
# Update Advanced Account Forecast Set Partner Action

Updates the status of the Advanced Account Forecast Set Partner record after the forecast data for a given combination of account and forecast set has been generated.

For more information about how the updateAdvancedAccountForecastSetPartner action updates the status, see [Calculate Account Forecasts Using Flows](https://help.salesforce.com/s/articleView?id=ind.admin_aaf_flow_calculate_acccount_forecasts.htm&type=5&language=en_US "HTML (New Window)") in Salesforce Help.

This object is available in API version 53.0 and later.

## Supported REST HTTP Methods

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

**Formats:** JSON

**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="d1836e92">Input</th>

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

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

            </tr>

          </thead>

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

              <td class="entry" headers="d1836e95" data-title="Type">string</td>

              <td class="entry" headers="d1836e98" data-title="Description">The ID of an account record.</td>

            </tr>

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

              <td class="entry" headers="d1836e95" data-title="Type">string</td>

              <td class="entry" headers="d1836e98" data-title="Description">Required. The ID of the advanced account forecast set associated with the
                account.</td>

            </tr>

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

              <td class="entry" headers="d1836e95" data-title="Type">string</td>

              <td class="entry" headers="d1836e98" data-title="Description">The status to be set for the Advanced Account Forecast Set Partner record.<p class="p">Possible
                  values are:</p>

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

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

                </ul>

                <p class="p">The status can be changed from <samp class="codeph nolang">Draft</samp> to
                  <samp class="codeph nolang">Active</samp> or <samp class="codeph nolang">Active</samp> to <samp class="codeph nolang">Inactive</samp>.
                </p>

                <p class="p">Note: When you don’t
                  specify a status, by default the status of the Advanced Account Forecast Set Partner
                  record is set from <samp class="codeph nolang">Draft</samp> to <samp class="codeph nolang">Active</samp>.</p>
              </td>

            </tr>

          </tbody>

        </table>

## Usage

**JSON Sample Requests**

This example sets the status for the Account Forecast Set Partner record with given forecast set ID and account ID to Active.

{
   "inputs":\[{
      "forecastSetId" : "0ni5sajb8347k3s",
      "accountId" : "001jsdhsdjo457",
      "status" : "Active"
   }\]
}

This example sets the status for all the Forecast Set Partner records with the given forecast set ID to Active.

{
   "inputs":\[{
      "forecastSetId" : "0ni5sajb8347k3s"
   }\]
}

This example sets the status for all the Forecast Set Partner records with the given forecast set ID to Inactive.

{
   "inputs":\[{
      "forecastSetId" : "0ni5sajb8347k3s",
      "status" : "Inactive"
   }\]
}

**JSON Sample Response**

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