{"title":"Codeunit 6133 E-Document Background Jobs, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/6133-e-document-background-jobs/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":6133,"name":"E-Document Background Jobs","app":"E-Document Core","url":"https://jonas-paprotka.de/ref/codeunit/6133-e-document-background-jobs/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/6133-e-document-background-jobs/source/","path":"src/Apps/W1/EDocument/App/src/Processing/EDocumentBackgroundJobs.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:6121":{"name":"E-Document","url":"https://jonas-paprotka.de/ref/table/6121-e-document/"},"table:472":{"name":"Job Queue Entry","url":"https://jonas-paprotka.de/ref/table/472-job-queue-entry/"},"table:6103":{"name":"E-Document Service","url":"https://jonas-paprotka.de/ref/table/6103-e-document-service/"},"codeunit:8711":{"name":"Telemetry","url":"https://jonas-paprotka.de/ref/codeunit/8711-telemetry/"},"codeunit:453":{"name":"Job Queue - Enqueue","url":"https://jonas-paprotka.de/ref/codeunit/453-job-queue-enqueue/"}},"procs":[{"name":"StartEdocumentCreatedFlow","line":19,"kind":"procedure","params":1,"steps":[[21,"call","ScheduleEDocumentJob",3],[22,"write",6121,"Modify"]]},{"name":"ScheduleMessageSend","line":25,"kind":"procedure","params":1,"steps":[[27,"call","ScheduleEDocumentJob",3]]},{"name":"SchedulePaymentOccurrence","line":30,"kind":"procedure","params":1,"steps":[[32,"call","ScheduleEDocumentJob",3]]},{"name":"TrySchedulePaymentOccurrence","line":35,"kind":"procedure","params":1,"steps":[[37,"call","TryScheduleEDocumentJob",3]]},{"name":"EnsurePaymentOccurrenceDispatcher","line":40,"kind":"procedure","access":"internal","params":0,"steps":[[51,"ext","table",472,"ScheduleRecurrentJobQueueEntryWithFrequency",4],[55,"write",472,"Modify"]]},{"name":"TryScheduleMessageSend","line":58,"kind":"procedure","params":1,"steps":[[60,"call","TryScheduleEDocumentJob",3]]},{"name":"ScheduleMessageResponse","line":63,"kind":"procedure","params":1,"steps":[[65,"call","ScheduleEDocumentJob",3]]},{"name":"TryScheduleMessageResponse","line":68,"kind":"procedure","params":1,"steps":[[70,"call","TryScheduleEDocumentJob",3]]},{"name":"ScheduleGetResponseJob","line":78,"kind":"procedure","params":1,"steps":[[82,"call","IsJobQueueScheduled",1],[86,"call","ScheduleEDocumentJob",3]]},{"name":"ScheduleRecurrentBatchJob","line":89,"kind":"procedure","params":1,"steps":[[95,"call","IsRecurrentJobScheduledForAService",1],[96,"ext","table",472,"ScheduleRecurrentJobQueueEntryWithFrequency",5],[98,"write",6103,"Modify"],[103,"write",472,"Modify"],[109,"write",472,"Modify"],[110,"ext","table",472,"IsReadyToStart",0],[111,"ext","table",472,"Restart",0],[118,"ext","codeunit",8711,"LogMessage",6]]},{"name":"ScheduleRecurrentImportJob","line":121,"kind":"procedure","params":1,"steps":[[130,"call","IsRecurrentJobScheduledForAService",1],[131,"ext","table",472,"ScheduleRecurrentJobQueueEntryWithFrequency",5],[133,"write",6103,"Modify"],[138,"write",472,"Modify"],[144,"write",472,"Modify"],[145,"ext","table",472,"IsReadyToStart",0],[146,"ext","table",472,"Restart",0],[153,"ext","codeunit",8711,"LogMessage",6]]},{"name":"HandleRecurrentBatchJob","line":156,"kind":"procedure","params":1,"steps":[[161,"call","ScheduleRecurrentBatchJob",1],[163,"call","RemoveJob",1]]},{"name":"HandleRecurrentImportJob","line":166,"kind":"procedure","params":1,"steps":[[170,"call","ScheduleRecurrentImportJob",1],[172,"call","RemoveJob",1]]},{"name":"RemoveJob","line":175,"kind":"procedure","params":1,"steps":[[180,"write",472,"Delete"]]},{"name":"ScheduleEDocumentJob","line":204,"kind":"procedure","access":"local","params":3,"steps":[[208,"call","PrepareEDocumentJob",4],[209,"run","codeunit",453]]},{"name":"TryScheduleEDocumentJob","line":213,"kind":"procedure","access":"local","params":3,"steps":[[217,"call","PrepareEDocumentJob",4],[218,"run","codeunit",453]]},{"name":"PrepareEDocumentJob","line":221,"kind":"procedure","access":"local","params":4,"steps":[[226,"event","OnBeforeScheduleEDocumentJob",0],[241,"ext","codeunit",8711,"LogMessage",6]]}]}