For more information about how the updateAdvancedAccountForecastSetPartner action updates the status, see Calculate Account Forecasts Using Flows 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
| Input | Type | Description |
|---|---|---|
| accountId | string | The ID of an account record. |
| forecastSetId | string | Required. The ID of the advanced account forecast set associated with the account. |
| status | string | The status to be set for the Advanced Account Forecast Set Partner record. Possible values are:
The status can be changed from Draft to Active or Active to Inactive. Note: 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. |
Usage
JSON Sample Requests
{
"inputs":[{
"forecastSetId" : "0ni5sajb8347k3s",
"accountId" : "001jsdhsdjo457",
"status" : "Active"
}]
}
{
"inputs":[{
"forecastSetId" : "0ni5sajb8347k3s"
}]
}
{
"inputs":[{
"forecastSetId" : "0ni5sajb8347k3s",
"status" : "Inactive"
}]
}
JSON Sample Response
[ {
"actionName" : "updateAdvancedAccountForecastSetPartner",
"errors" : null,
"isSuccess" : true,
"outputValues" : null
} ]