AUTOFORECAST

The AUTOFORECAST script function calculates forecast data for future activities. AutoForecasts provide information about tasks that are scheduled to run within a specified timeframe. While you can trigger forecasts manually from the Automic Web Interface, this script function programmatically generates forecasts for all active Schedules and Events.

Notes:

  • This function returns forecast data specifically for the Client where the script runs.
  • Using this script element automatically writes all open script transactions to the AE database. For more information, see Script Processing.

Important! Your system must be configured to support AutoForecasts before using this function. For more information, see Autoforecast.

Syntax

AUTOFORECAST ()

Return Codes

This script function returns the following code:

  • 0
    Forecast data created successfully

Tip: Include processing instructions in your script to define error handling behavior. For more information, see :ON_ERROR.

Examples

The following example generates a forecast for all active Schedules and Events within the current Client.

:SET &RET# = AUTOFORECAST()

See also: