---
title: "Codeunit 841 Cash Flow Management"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/841-cash-flow-management/
type: codeunit
id: 841
name: "Cash Flow Management"
app: "Base Application"
namespace: Microsoft.CashFlow.Forecast
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/841-cash-flow-management/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 841 Cash Flow Management

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/841-cash-flow-management/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.CashFlow.Forecast |
| Versions | 17-28 |
| Source file | CashFlow/Forecast/CashFlowManagement.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| ShowSourceDocument | (Variant) | - | public | 17-28 | - | - |
| ShowSource | (Variant) | - | public | 17-28 | - | - |
| CashFlowName | (Code[20]) | Text[50] | public | 17-23 | Pending 21.0 | Replaced with CashFlowNameFullLength. |
| CashFlowAccountName | (Code[20]) | Text[100] | public | 17-28 | - | - |
| RecurrenceToRecurringFrequency | (Option) | Text | public | 17-28 | - | - |
| RecurringFrequencyToRecurrence | (DateFormula, var Option) | - | public | 17-28 | - | - |
| CreateAndStartJobQueueEntry | (Option) | - | public | 17-28 | - | - |
| DeleteJobQueueEntries | () | - | public | 17-28 | - | - |
| GetCashAccountFilter | () | Text | public | 17-28 | - | - |
| SetupCashFlow | (Code[250]) | - | public | 17-28 | - | - |
| UpdateCashFlowForecast | (Boolean) | - | public | 17-28 | - | - |
| SetViewOnPurchaseHeaderForTaxCalc | (var Record Purchase Header, Date) | - | public | 17-28 | - | - |
| SetViewOnSalesHeaderForTaxCalc | (var Record Sales Header, Date) | - | public | 17-28 | - | - |
| SetViewOnVATEntryForTaxCalc | (var Record VAT Entry, Date) | - | public | 17-28 | - | - |
| GetTaxAmountFromSalesOrder | (Record Sales Header) | Decimal | public | 17-28 | - | - |
| GetTaxAmountFromPurchaseOrder | (Record Purchase Header) | Decimal | public | 17-28 | - | - |
| GetTotalAmountFromSalesOrder | (Record Sales Header) | Decimal | public | 17-28 | - | - |
| GetTotalAmountFromPurchaseOrder | (Record Purchase Header) | Decimal | public | 17-28 | - | - |
| CashFlowNameFullLength | (Code[20]) | Text[100] | public | 20-28 | - | - |
| CreateCashFlowAccount | (Enum Cash Flow Source Type, Code[250]) | - | public | 21-28 | - | - |
| GetNoFromSourceType | (Option) | Text | public | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeGetTaxAmountFromPurchaseOrder | (Record Purchase Header, var Decimal, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeGetTaxAmountFromSalesOrder | (Record Sales Header, var Decimal, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeShowSource | (Variant, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeShowSourceDocument | (Variant, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeUpdateCashFlowForecast | (Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnShowSourceLocalSourceTypeCase | (Enum Cash Flow Source Type, Code[20], Boolean, Code[20], Date, Code[10], var Boolean) | 17-28 | - | - |
| Integration event | OnAfterSetViewOnVATEntryForTaxCalc | (var Record VAT Entry, Date, Date) | 18-28 | - | - |
| Integration event | OnAfterGetTotalAmountFromSalesOrder | (Record Sales Header, var Decimal) | 20-28 | - | - |
| Integration event | OnAfterCreateCashFlowAccounts | (Code[250]) | 21-28 | - | - |
| Integration event | OnBeforeInsertOnCreateCashFlowSetup | (var Record Cash Flow Setup, Code[20]) | 21-28 | - | - |
| Integration event | OnBeforeRunSuggestWorksheetLinesOnUpdateCashFlowForecast | (var Report Suggest Worksheet Lines) | 21-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
