Overview
The BC.WRITEBACKBUDGET function enables you to write lines to a specified GL budget in Business Central.
Writing back to General Ledger budgets is not available to users with the MS Dynamics 365 Team Members license.
Related articles
-
Getting started with Writeback - A general article on setting up and using writeback functions.
Syntax
=BC.WRITEBACKBUDGET(
ConnectionName,
Budget,
BudgetDescription,
BudgetDimensions,
BudgetUpdateMode,
Account,
Amount,
Date,
Description,
Dimensions,
EntryNumber,
EntryNumberOutput
)
Arguments
Header data
|
Argument |
Required/Optional |
Description |
|
|
Required |
The name of the connection, as specified in the Connection Manager. This function does not support the multiple connection functionality. |
|
|
Required |
The name of the GL budget targeted for Writeback. If a budget with the provided name is not present in Business Central, a new budget by that name will be created. |
|
|
Optional |
A textual description of the budget. |
|
|
Optional |
Comma-separated array of budget dimensions. This parameter affects only newly created budgets. If skipped, the new budget is created without budget dimensions. Global dimensions are not affected by this parameter. |
|
|
Optional |
One of four available values:
|
Line data
|
Argument |
Required/Optional |
Description |
|
|
Required |
Account code for which the budget entry is created. |
|
|
Required |
Budget entry amount. |
|
|
Required |
Budget entry date. |
|
|
Optional |
A description of the budget entry. |
|
|
Optional |
A two-column Excel range, where the first column contains the name of a predefined dimension (e.g. department, customer, project etc.), and the second column contains the value for that dimension. When writing to an existing budget, make sure the dimensions you specify in this argument are part of the budget's configured dimensions. See the Using Dimensions article for more details. |
|
|
Optional |
Budget entry number. |
|
|
Optional |
Reference to a cell where the GL budget entry numbers will be returned. |
Example
Writeback to particular dimensions
Assume the following dimension range A3:B4:
You can reference this range in your BC.WRITEBACKBUDGET formula:
=BC.WRITEBACKBUDGET(
"BC",
"BUDGET2025",
"Annual Budget 2025",
,
,
"61100",
5000,
"2025-01-01",
"Q1 office budget",
E3:F4
)
This formula writes a budget entry of 5000 to account 61100 for 1 January 2025, and assigns the dimension value codes DEPARTMENT – ADM and PROJECT – PROJ-01 in line data.