{"title":"Codeunit 88 Sales Post via Job Queue, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/88-sales-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":88,"name":"Sales Post via Job Queue","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/88-sales-post-via-job-queue/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/88-sales-post-via-job-queue/source/","path":"src/Layers/W1/BaseApp/Sales/Posting/SalesPostviaJobQueue.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:1380":{"name":"Batch Processing Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1380-batch-processing-mgt/"},"codeunit:80":{"name":"Sales-Post","url":"https://jonas-paprotka.de/ref/codeunit/80-sales-post/"},"codeunit:1373":{"name":"Batch Posting Print Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1373-batch-posting-print-mgt/"},"table:36":{"name":"Sales Header","url":"https://jonas-paprotka.de/ref/table/36-sales-header/"},"codeunit:414":{"name":"Release Sales Document","url":"https://jonas-paprotka.de/ref/codeunit/414-release-sales-document/"},"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/"},"table:313":{"name":"Inventory Setup","url":"https://jonas-paprotka.de/ref/table/313-inventory-setup/"},"table:471":{"name":"Job Queue Category","url":"https://jonas-paprotka.de/ref/table/471-job-queue-category/"}},"procs":[{"name":"OnRun","line":20,"kind":"trigger","steps":[[35,"ext","codeunit",1380,"GetBatchFromSession",2],[38,"call","SetJobQueueStatus",3],[39,"event","OnRunOnBeforeRunSalesPost",0],[40,"run","codeunit",80],[41,"call","SetJobQueueStatus",3],[43,"event","OnBeforeBatchProcessingErrorReset",1],[45,"ext","codeunit",1380,"ResetBatchID",0],[48,"event","OnRunOnAfterRunSalesPost",0],[51,"ext","codeunit",1373,"PrintSalesDocument",1],[53,"call","AreOtherJobQueueEntriesScheduled",1],[54,"ext","codeunit",1380,"ResetBatchID",0],[55,"ext","codeunit",1380,"DeleteBatchProcessingSessionMapForRecordId",1],[56,"call","SetJobQueueStatus",3]]},{"name":"SetJobQueueStatus","line":70,"kind":"procedure","access":"local","params":3,"steps":[[72,"event","OnBeforeSetJobQueueStatus",0],[76,"write",36,"Modify"]]},{"name":"EnqueueSalesDoc","line":85,"kind":"procedure","params":1,"steps":[[87,"call","EnqueueSalesDocWithUI",2]]},{"name":"EnqueueSalesDocWithUI","line":95,"kind":"procedure","params":2,"steps":[[102,"event","OnBeforeEnqueueSalesDoc",0],[111,"event","OnBeforeReleaseSalesDoc",0],[113,"run","codeunit",414],[118,"call","EnqueueJobEntry",1],[119,"write",36,"Modify"]]},{"name":"EnqueueJobEntry","line":126,"kind":"procedure","access":"local","params":1,"steps":[[134,"call","FillJobEntryFromSalesSetup",1],[135,"call","FillJobEntrySalesDescription",2],[137,"event","OnEnqueueJobEntryOnBeforeEnqueue",0],[138,"run","codeunit",453]]},{"name":"FillJobEntryFromSalesSetup","line":142,"kind":"procedure","access":"local","params":1,"steps":[[148,"call","GetJobQueueCategoryCode",0]]},{"name":"CancelQueueEntry","line":165,"kind":"procedure","params":1,"steps":[[168,"call","DeleteJobs",1],[170,"write",36,"Modify"]]},{"name":"DeleteJobs","line":174,"kind":"procedure","access":"local","params":1,"steps":[[182,"write",472,"DeleteAll",1]]},{"name":"AreOtherJobQueueEntriesScheduled","line":185,"kind":"procedure","access":"local","params":1,"steps":[[192,"call","GetJobQueueCategoryCode",0]]},{"name":"GetJobQueueCategoryCode","line":210,"kind":"procedure","access":"internal","params":0,"steps":[[220,"ext","table",313,"UseLegacyPosting",0],[223,"ext","table",471,"InsertRec",2]]}]}