{"title":"Codeunit 250 Gen. Jnl.-Post via Job Queue, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/250-gen-jnl-post-via-job-queue/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":250,"name":"Gen. Jnl.-Post via Job Queue","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/250-gen-jnl-post-via-job-queue/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/250-gen-jnl-post-via-job-queue/source/","path":"src/Layers/W1/BaseApp/Finance/GeneralLedger/Posting/GenJnlPostviaJobQueue.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":{"codeunit:13":{"name":"Gen. Jnl.-Post Batch","url":"https://jonas-paprotka.de/ref/codeunit/13-gen-jnl-post-batch/"},"codeunit:1373":{"name":"Batch Posting Print Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1373-batch-posting-print-mgt/"},"table:81":{"name":"Gen. Journal Line","url":"https://jonas-paprotka.de/ref/table/81-gen-journal-line/"},"codeunit:453":{"name":"Job Queue - Enqueue","url":"https://jonas-paprotka.de/ref/codeunit/453-job-queue-enqueue/"},"table:472":{"name":"Job Queue Entry","url":"https://jonas-paprotka.de/ref/table/472-job-queue-entry/"},"codeunit:11":{"name":"Gen. Jnl.-Check Line","url":"https://jonas-paprotka.de/ref/codeunit/11-gen-jnl-check-line/"}},"procs":[{"name":"OnRun","line":24,"kind":"trigger","steps":[[41,"call","ExecuteRecurringGeneralJournalsLogic",1],[48,"call","SetJobQueueStatus",2],[50,"run","codeunit",13],[51,"call","SetJobQueueStatus",2],[57,"ext","codeunit",1373,"PrintJournal",1],[60,"call","ClearBackgroundPostingInfo",1]]},{"name":"SetJobQueueStatus","line":72,"kind":"procedure","access":"local","params":2,"steps":[[79,"write",81,"ModifyAll"]]},{"name":"EnqueueGenJrnlLine","line":89,"kind":"procedure","params":1,"steps":[[91,"call","EnqueueGenJrnlLineWithUI",2]]},{"name":"EnqueueGenJrnlLineWithUI","line":100,"kind":"procedure","params":2,"steps":[[104,"event","OnBeforeEnqueueGenJrnlLine",0],[110,"event","OnBeforeReleaseGenJrnlLine",0],[111,"call","EnqueueJobEntry",1],[112,"write",81,"Modify"],[117,"write",81,"ModifyAll"],[118,"write",81,"ModifyAll"]]},{"name":"EnqueueJobEntry","line":125,"kind":"procedure","access":"local","params":1,"steps":[[134,"call","FillJobEntryFromGeneralLedgerSetup",1],[135,"call","FillJobEntryGeneralLedgerDescription",2],[136,"run","codeunit",453]]},{"name":"CancelQueueEntry","line":164,"kind":"procedure","params":1,"steps":[[167,"call","DeleteJobs",1],[168,"call","SetJobQueueStatus",2]]},{"name":"DeleteJobs","line":172,"kind":"procedure","access":"local","params":1,"steps":[[180,"write",472,"DeleteAll",1]]},{"name":"ClearBackgroundPostingInfo","line":183,"kind":"procedure","access":"local","params":1,"steps":[[190,"write",81,"ModifyAll"],[191,"write",81,"ModifyAll"],[192,"write",81,"ModifyAll"]]},{"name":"ExecuteRecurringGeneralJournalsLogic","line":195,"kind":"procedure","access":"local","params":1,"steps":[[199,"ext","codeunit",11,"DateNotAllowed",2],[200,"call","SetJobQueueStatus",2]]}]}