{"title":"Codeunit 5469 Library API - General Journal, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/5469-library-api-general-journal/points/","author":"JOP-AL","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/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":5469,"name":"Library API - General Journal","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/5469-library-api-general-journal/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/5469-library-api-general-journal/source/","path":"src/Layers/W1/BaseApp/Finance/GeneralLedger/Journal/LibraryAPIGeneralJournal.Codeunit.al","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","lines":"a line is <source url>#L<line>"},"steps":{"event":"[line, \"event\", name, handled]: raises an event of this object; handled 1 when it has an IsHandled parameter","call":"[line, \"call\", name, arguments]: calls a procedure of this object","ext":"[line, \"ext\", type, id, name, arguments]: calls a procedure of another object, through a variable declared with that type","write":"[line, \"write\", table id, method, 1 when called with true]: Insert, Modify, ModifyAll, Delete, DeleteAll or Rename","validate":"[line, \"validate\", table id, field name]","run":"[line, \"run\", type, id]: Codeunit.Run, Page.Run, Report.Run and their kin"},"objects":{"table:232":{"name":"Gen. Journal Batch","url":"https://jonas-paprotka.de/ref/table/232-gen-journal-batch/"},"codeunit:230":{"name":"GenJnlManagement","url":"https://jonas-paprotka.de/ref/codeunit/230-genjnlmanagement/"},"table:81":{"name":"Gen. Journal Line","url":"https://jonas-paprotka.de/ref/table/81-gen-journal-line/"},"codeunit:308":{"name":"No. Series - Batch","url":"https://jonas-paprotka.de/ref/codeunit/308-no-series-batch/"}},"procs":[{"name":"InitializeLine","line":37,"kind":"procedure","params":4,"steps":[[47,"call","GetCopyValuesFromLine",4],[53,"call","SetUpNewLine",4],[56,"call","SetUpNewLine",4],[62,"call","AlterDocNoBasedOnExternalDocNo",4]]},{"name":"EnsureGenJnlBatchExists","line":71,"kind":"procedure","params":2,"steps":[[76,"validate",232,"Journal Template Name"],[77,"ext","table",232,"SetupNewBatch",0],[78,"validate",232,"Name"],[79,"validate",232,"Description"],[80,"write",232,"Insert",1]]},{"name":"SetUpNewLine","line":112,"kind":"procedure","access":"local","params":4,"steps":[[120,"ext","codeunit",230,"CalcBalance",6],[123,"ext","table",81,"SetUpNewLine",3],[126,"validate",81,"Line No."],[127,"ext","table",81,"GetNewLineNo",2]]},{"name":"AlterDocNoBasedOnExternalDocNo","line":130,"kind":"procedure","access":"local","params":4,"steps":[[138,"ext","codeunit",308,"SimulateGetNextNo",3]]}]}