---
title: "Codeunit 131306 Library - Journals"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/131306-library-journals/
type: codeunit
id: 131306
name: "Library - Journals"
app: "Application Test Library"
versions: "28-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/codeunit/131306-library-journals/source/"
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 131306 Library - Journals

JOP-AL, https://jonas-paprotka.de/ref/codeunit/131306-library-journals/

| | |
| --- | --- |
| App | Application Test Library |
| Versions | 28-29 |
| Minors | W1 28.0-29.0; DE 28.0-29.0; US 28.0-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/131306-library-journals/editions.json) |
| Source file | LibraryJournals.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CreateGenJournalLine | (var GenJournalLine: Record "Gen. Journal Line"; JournalTemplateName: Code[10]; JournalBatchName: Code[10]; DocumentType: Enum "Gen. Journal Document Type"; AccountType: Enum "Gen. Journal Account Type"; AccountNo: Code[20]; BalAccountType: Enum "Gen. Journal Account Type"; BalAccountNo: Code[20]; Amount: Decimal) | - | public | 28-29 | - | - |
| CreateGenJournalLine2 | (var GenJournalLine: Record "Gen. Journal Line"; JournalTemplateName: Code[10]; JournalBatchName: Code[10]; DocumentType: Enum "Gen. Journal Document Type"; AccountType: Enum "Gen. Journal Account Type"; AccountNo: Code[20]; BalAccountType: Enum "Gen. Journal Account Type"; BalAccountNo: Code[20]; Amount: Decimal) | - | public | 28-29 | - | - |
| CreateGenJournalLineWithBatch | (var GenJournalLine: Record "Gen. Journal Line"; DocumentType: Enum "Gen. Journal Document Type"; AccountType: Enum "Gen. Journal Account Type"; AccountNo: Code[20]; LineAmount: Decimal) | - | public | 28-29 | - | - |
| CreateGenJournalBatch | (var GenJournalBatch: Record "Gen. Journal Batch") | - | public | 28-29 | - | - |
| CreateGenJournalBatchWithType | (var GenJournalBatch: Record "Gen. Journal Batch"; TemplateType: Enum "Gen. Journal Template Type") | - | public | 28-29 | - | - |
| SelectGenJournalBatch | (var GenJournalBatch: Record "Gen. Journal Batch"; GenJournalTemplateCode: Code[10]) | - | public | 28-29 | - | - |
| SelectGenJournalTemplate | (Type: Enum "Gen. Journal Template Type"; PageID: Integer) | Code[10] | public | 28-29 | - | - |
| SetPostWithJobQueue | (PostWithJobQueue: Boolean) | - | public | 28-29 | - | - |
| SetPostAndPrintWithJobQueue | (PostAndPrintWithJobQueue: Boolean) | - | public | 28-29 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeModifyGenJnlLineWhenCreate | (var GenJournalLine: Record "Gen. Journal Line") | 28-29 | - | - |

## Source

Symbols: Microsoft.ApplicationTestLibrary.symbols.d852d5d2-a39d-4179-baeb-f99a19e32510, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
