Newer Version Available

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

Update Advanced Account Forecast Set Partner

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 in Salesforce Help.

The updateAdvancedAccountForecastSetPartner action supports changing the status of the Advanced Account Forecast Set Partner record from:
  • Draft to Active
  • Active to Inactive

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

Input Details
accountId
Type
string
Description
The ID of an account record.
forecastSetId
Type
string
Description
Required. The ID of the advanced account forecast set associated with the account.
status
Type
string
Description
The status to be set for the Advanced Account Forecast Set Partner record.
Possible values are:
  • Active
  • Inactive

When you don’t specify a status, by default the status of the Advanced Account Forecast Set Partner record is set from Draft to Active.

Note

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.
1{
2   "inputs":[{
3      "forecastSetId" : "0ni5sajb8347k3s",
4      "accountId" : "001jsdhsdjo457",
5      "status" : "Active"
6   }]
7}
This example sets the status for all the Forecast Set Partner records with the given forecast set ID to Active.
1{
2   "inputs":[{
3      "forecastSetId" : "0ni5sajb8347k3s"
4   }]
5}
This example sets the status for all the Forecast Set Partner records with the given forecast set ID to Inactive.
1{
2   "inputs":[{
3      "forecastSetId" : "0ni5sajb8347k3s",
4      "status" : "Inactive"
5   }]
6}

JSON Sample Response

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