---
id: object/page/1853
type: object
title: Page 1853 "Sales Forecast Setup Card"
summary: Page 1853 "Sales Forecast Setup Card" in SalesAndInventoryForecast (Microsoft.Inventory.InventoryForecast). Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - page
  - salesandinventoryforecast
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 8c2f485094d4028e932a3a5b87454b2679eb1f34ae10f1ff0bf49340c561f106
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/SalesAndInventoryForecast/app/src/pages/SalesForecastSetupCard.Page.al
    title: src/Apps/W1/SalesAndInventoryForecast/app/src/pages/SalesForecastSetupCard.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/ui-extensions-sales-forecast
    title: Using the Sales and Inventory Forecast extension to manage inventory
    date: null
    commit: null
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/ui-extensions-sales-forecast
  objects: []
  features: []
  topics:
    - topic/business-central/development-and-administration/customize-business-central/customize-with-extensions
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 1853
name: Sales Forecast Setup Card
caption: Sales and Inventory Forecast Setup
namespace: Microsoft.Inventory.InventoryForecast
app: SalesAndInventoryForecast
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids:
  - docs/learn-smb-docs/business-central/ui-extensions-sales-forecast.md
counts:
  fields: 0
  procedures: 2
  events: 0
  subscribers: 0
  controls: 13
  actions: 2
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 2
  called_by: 0
  implements: 0
---

# Page 1853 "Sales Forecast Setup Card"

> Page 1853 "Sales Forecast Setup Card" in SalesAndInventoryForecast (Microsoft.Inventory.InventoryForecast). Introduced in BC29, still in BC30.

SalesAndInventoryForecast · Microsoft.Inventory.InventoryForecast · captioned "Sales and Inventory Forecast Setup" · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/SalesAndInventoryForecast/app/src/pages/SalesForecastSetupCard.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Sales and Inventory Forecast Setup |
| SourceTable | MS - Sales Forecast Setup |
| PageType | Card |
| UsageCategory | Administration |
| ApplicationArea | Basic, Suite |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| General | Enabled | [Enabled](../table/1853.md#fields) | Specifies if the forecasting feature is enabled. |
|  | Period Type | [Period Type](../table/1853.md#fields) | Specifies the type of period that you want to see the forecast by. |
|  | Horizon | [Horizon](../table/1853.md#fields) | Specifies how many periods you want the forecast to cover. |
|  | Stockout Warning Horizon | [Stockout Warning Horizon](../table/1853.md#fields) | Specifies how far in the future you want to look for stockouts. The value you enter works together with the unit of time specified in the Period Type field to determine the horizon. |
|  | API URI | [API URI](../table/1853.md#fields) | Specifies the API URI for the Azure Machine Learning instance. |
|  | API Key | `APIKeyValue` | Specifies the API key for the Time Series experiment in Azure Machine Learning. |
|  | Timeout (seconds) | [Timeout (seconds)](../table/1853.md#fields) | Specifies the number of seconds to wait before the call to Azure Machine Learning times out. |
|  | Variance % | [Variance %](../table/1853.md#fields) | Specifies the range of deviation, plus or minus, that you'll accept in the forecast. Lower percentages represent more accurate forecasts, and are typically between 20 and 40. Forecasts outside the range are considered inaccurate, and do not display. |
|  | Expiration Period (Days) | [Expiration Period (Days)](../table/1853.md#fields) | Specifies the number of days until the forecast expires. |
|  | Historical Periods | [Historical Periods](../table/1853.md#fields) | Specifies the number of historical periods from which to get data for the forecast. The length of the period is specified in the Period Type field. |
|  | Timeseries Model | [Timeseries Model](../table/1853.md#fields) | Specifies the algorithm to use for the time series analysis. |
| Statistics | Last Run Completed | [Last Run Completed](../table/1853.md#fields) | Specifies the date and time of the last completed forecast update. You cannot change this value. |
|  | Used Processing Time (Seconds) | `GetMLTotalProcessingTime()` | Specifies how many seconds of processing time have been used. You cannot change this value. |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Processing | Setup Scheduled Forecasting | Setup scheduled forecasting of item sales |  |
|  | Update Forecast | Update forecast for all items |  |

## Trigger event subscribers

- OnOpenPageEvent: [Codeunit 1852 "Sales Forecast Scheduler"](../codeunit/1852.md) OnOpenSalesInventoryForecastSetup

## Procedures

2 local procedures, no public ones.

## Triggers

OnOpenPage

## Relations

- source table [Table 1853 "MS - Sales Forecast Setup"](../table/1853.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 1852 "Sales Forecast Scheduler"](../codeunit/1852.md) (1 call: `OnOpenPage → JobQueueEntryCreationInProcess`)
- [Codeunit 2006 "Azure AI Usage"](../codeunit/2006.md) (1 call: `GetMLTotalProcessingTime → GetTotalProcessingTime`)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

## Documented on Microsoft Learn

- [Using the Sales and Inventory Forecast extension to manage inventory](https://learn.microsoft.com/dynamics365/business-central/ui-extensions-sales-forecast)

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "page", object_name: "Sales Forecast Setup Card")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
