Overview
The BC.WRITEBACKJOURNAL function enables you to write lines to a specified General Journal in Business Central.
Writing back to General Journals is not available to users with the MS Dynamics 365 Team Members license.
Syntax
=BC.WRITEBACKJOURNAL(
ConnectionName,
PostingDate,
Journal,
PostTransaction,
GlRegisterNumberOutput,
OpenAfterImport,
AccountType,
Account,
Amount,
DocumentNumber,
ExternalDocumentNumber,
BalancingAccountType,
BalancingAccount,
Description,
Comment,
Dimensions,
LineNumber
)
Arguments
Header data
|
Argument |
Required/Optional |
Description |
|
|
Required |
The name of the connection, as specified in the Connection Manager. |
|
|
Required |
The date of the transaction in the general ledger. |
|
|
Required |
The name of the General Journal. |
|
|
Required |
Determines whether the transactions in the specified General journal should be posted.
Affects all lines in the specified General Journal, not just the lines uploaded during writeback. |
|
|
Optional |
Defines the address of the cell where the GL register number is returned after writeback is complete. Use only when |
|
|
Optional |
Possible values:
Default value: |
Line data
|
Argument |
Required/Optional |
Description |
|
|
Required |
The type of the account to which the entry line will be posted.
|
|
|
Required |
The number of the account to which the entry line will be posted. |
|
|
Required |
The total amount (including VAT) in the journal line. |
|
|
Required |
A document number for the journal line. |
|
|
Optional |
An external document number for the journal line. |
|
|
Optional |
The type of balancing account.
|
|
|
Optional |
The balancing G/L Account or object ID. |
|
|
Optional |
A description of the journal line. |
|
|
Optional |
A comment on the journal line. |
|
|
Optional |
A two-column (or two-row) Excel range, where the first column/row contains the name of a predefined dimension (e.g. department, customer, project etc.), and the second column/row contains the semicolon-separated list of values for that dimension. |
|
|
Optional |
The journal item line number. |