---
id: object/table/843
type: object
title: Table 843 "Cash Flow Setup"
summary: Table 843 "Cash Flow Setup" in Base Application (Microsoft.CashFlow.Setup). 27 fields, 17 public procedures. Present since at least BC23, still in BC30, changed in BC24-27.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "27"
  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: 6a00607b9f538b9a10edc4078df30795c42b5e6d4805761996d3116fa4c159f0
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/CashFlow/Setup/CashFlowSetup.Table.al
    title: src/Layers/W1/BaseApp/CashFlow/Setup/CashFlowSetup.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/finance-setup-cash-flow-analyses
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/set-up-business-central/set-up-finance
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 843
name: Cash Flow Setup
namespace: Microsoft.CashFlow.Setup
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "26"
  - "27"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 27
  procedures: 22
  events: 0
  subscribers: 0
relations:
  out: 13
  referenced_by: 0
  pages: 1
  extended_by: 1
  event_subscribers: 0
  calls: 4
  called_by: 0
  implements: 0
---

# Table 843 "Cash Flow Setup"

> Table 843 "Cash Flow Setup" in Base Application (Microsoft.CashFlow.Setup). 27 fields, 17 public procedures. Present since at least BC23, still in BC30, changed in BC24-27.

Base Application · Microsoft.CashFlow.Setup · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/CashFlow/Setup/CashFlowSetup.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 846 "Cash Flow Setup"](../page/846.md) (1 Learn page).

## Properties

| Property | Value |
|---|---|
| Caption | Cash Flow Setup |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Primary Key | Code[10] | — | DataClassification SystemMetadata |
| 2 | Cash Flow Forecast No. Series | Code[20] | Specifies the number series that is used in cash flow forecasts. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 3 | Receivables CF Account No. | Code[20] | Specifies the receivables account number that is used in cash flow forecasts. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> | TableRelation [Table 841 "Cash Flow Account"](../table/841.md) (Cash Flow Account) |
| 4 | Payables CF Account No. | Code[20] | Specifies the payables account number that is used in cash flow forecasts. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> | TableRelation [Table 841 "Cash Flow Account"](../table/841.md) (Cash Flow Account) |
| 5 | Sales Order CF Account No. | Code[20] | Specifies the sales order account number that is used in cash flow forecasts. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> | TableRelation [Table 841 "Cash Flow Account"](../table/841.md) (Cash Flow Account) |
| 6 | Purch. Order CF Account No. | Code[20] | Specifies the purchase order account number that is used in cash flow forecasts. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> | TableRelation [Table 841 "Cash Flow Account"](../table/841.md) (Cash Flow Account) |
| 8 | FA Budget CF Account No. | Code[20] | Specifies the fixed asset budget account number that is used in cash flow forecasts. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> | TableRelation [Table 841 "Cash Flow Account"](../table/841.md) (Cash Flow Account) |
| 9 | FA Disposal CF Account No. | Code[20] | Specifies the fixed asset disposal account number that is used in cash flow forecasts. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> | TableRelation [Table 841 "Cash Flow Account"](../table/841.md) (Cash Flow Account) |
| 11 | CF No. on Chart in Role Center | Code[20] | — |  |
| 12 | Job CF Account No. | Code[20] | Specifies the project account number that is used in cash flow forecasts. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> | TableRelation [Table 841 "Cash Flow Account"](../table/841.md) (Cash Flow Account) |
| 13 | Automatic Update Frequency | Option | Specifies the automatic update frequency of the cash flow forecast. The Cash Flow Forecast with "Show in Chart on Role Center" set will be used for the automatic update. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> | OptionCaption: Never,Daily,Weekly |
| 14 | Tax CF Account No. | Code[20] | Specifies the tax account number that is used in cash flow forecasts. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> | TableRelation [Table 841 "Cash Flow Account"](../table/841.md) (Cash Flow Account) |
| 19 | Taxable Period | Option | Specifies how often tax payment is registered. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> | OptionCaption: Monthly,Quarterly,Accounting Period,Yearly |
| 20 | Tax Payment Window | DateFormula | Specifies a date formula for calculating how soon after the previous tax period finished, the tax payment is registered. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> |  |
| 21 | Tax Bal. Account Type | Option | Specifies the type of the balancing account that your taxes are paid to. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> | OptionCaption: ,Vendor,G/L Account |
| 22 | Tax Bal. Account No. | Code[20] | Specifies the balancing account that your taxes are paid to. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> | TableRelation [Table 15 "G/L Account"](../table/15.md), [Table 23 "Vendor"](../table/23.md) (if ("Tax Bal. Account Type" = const("G/L Account")) "G/L Account" else if ("Tax Bal. Account Type" = const(Vendor)) Vendor) |
| 23 | API Key | Text[250] | — |  |
| 24 | API URL | Text[250] | Specifies the API URI to the AzureML instance. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> |  |
| 25 | Variance % | Integer | 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. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> |  |
| 26 | Historical Periods | Integer | Specifies the number of historical periods to include in the forecast. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> |  |
| 27 | Horizon | Integer | Specifies how many periods you want the forecast to cover. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> |  |
| 28 | Period Type | Option | Specifies the type of period that you want to see the forecast by. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> | OptionCaption: Day,Week,Month,Quarter,Year |
| 29 | TimeOut | Integer | — |  |
| 30 | Service Pass API Key ID | Guid | — |  |
| 33 | Time Series Model | Option | Specifies the time series model to be used for the cash flow forecast. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> | OptionCaption: 'ARIMA,ETS,STL,ETS+ARIMA,ETS+STL,ALL,TBATS', Locked = true |
| 34 | Azure AI Enabled | Boolean | Specifies status of Azure AI forecast. <small>via [Page 846 "Cash Flow Setup"](../page/846.md)</small> |  |
| 35 | Show AzureAI Notification | Boolean | — |  |

## Keys

- Key1: Primary Key (clustered)

## Procedures

- `CheckAccountType(Code: Code[20])`
- `SetChartRoleCenterCFNo(CashFlowNo: Code[20])`
- `GetChartRoleCenterCFNo(): Code[20]`
- `GetTaxPaymentDueDate(ReferenceDate: Date): Date`
- `GetTaxPeriodStartEndDates(TaxDueDate: Date; var StartDate: Date; var EndDate: Date)`
- `GetTaxPaymentStartDate(TaxDueDate: Date): Date`
- `GetTaxPeriodEndDate(TaxDueDate: Date): Date`
- `GetCurrentPeriodStartDate(): Date`
- `GetCurrentPeriodEndDate(): Date`
- `UpdateTaxPaymentInfo(NewTaxablePeriod: Option; NewPaymentWindow: DateFormula; NewTaxBalAccountType: Option; NewTaxBalAccountNum: Code[20])`
- `HasValidTaxAccountInfo(): Boolean`
- `EmptyTaxBalAccountIfTypeChanged(OldTypeValue: Option)`
- `SaveUserDefinedAPIKey(APIKeyValue: SecretText)`
- `GetMLCredentials(var ApiUrl: Text[250]; var ApiKey: SecretText; var LimitValue: Decimal; var UsingStandardCredentials: Boolean): Boolean`
- `EnableEncryption()` (internal)
- `GetUserDefinedAPIKeySecret(): SecretText` (internal)
- `IsAPIUserDefined(): Boolean`

Plus 5 local procedures.

## Relations

- drill-down page [Page 846 "Cash Flow Setup"](../page/846.md)
- lookup page [Page 846 "Cash Flow Setup"](../page/846.md)
- Tax Bal. Account No.: TableRelation [Table 15 "G/L Account"](../table/15.md) (conditional)
- Tax Bal. Account No.: TableRelation [Table 23 "Vendor"](../table/23.md) (conditional)
- Cash Flow Forecast No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- FA Budget CF Account No.: TableRelation [Table 841 "Cash Flow Account"](../table/841.md)
- FA Disposal CF Account No.: TableRelation [Table 841 "Cash Flow Account"](../table/841.md)
- Job CF Account No.: TableRelation [Table 841 "Cash Flow Account"](../table/841.md)
- Payables CF Account No.: TableRelation [Table 841 "Cash Flow Account"](../table/841.md)
- Purch. Order CF Account No.: TableRelation [Table 841 "Cash Flow Account"](../table/841.md)
- Receivables CF Account No.: TableRelation [Table 841 "Cash Flow Account"](../table/841.md)
- Sales Order CF Account No.: TableRelation [Table 841 "Cash Flow Account"](../table/841.md)
- Tax CF Account No.: TableRelation [Table 841 "Cash Flow Account"](../table/841.md)

## Pages and codeunits on this table

- [Page 846 "Cash Flow Setup"](../page/846.md) (source table)

## Extended by

- [Table extension 6471 "Serv. Cash Flow Setup"](../tableextension/6471.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 1293 "Isolated Storage Management"](../codeunit/1293.md) (3 calls: `GetMLCredentials → Get`, `GetUserDefinedAPIKeySecret → Get`, `SaveUserDefinedAPIKey → Set`)
- [Codeunit 1266 "Cryptography Management"](../codeunit/1266.md) (2 calls: `EnableEncryption → EnableEncryption`, `EnableEncryption → IsEncryptionEnabled`)
- [Codeunit 2000 "Time Series Management"](../codeunit/2000.md) (1 call: `RetrieveSaaSMLCredentials → GetMLForecastCredentials`)
- [Codeunit 457 "Environment Information"](../codeunit/457.md) (1 call: `GetMLCredentials → IsSaaS`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-27

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: "table", object_name: "Cash Flow Setup")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
