{"title":"Codeunit 1380 Batch Processing Mgt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/1380-batch-processing-mgt/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":1380,"name":"Batch Processing Mgt.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/1380-batch-processing-mgt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/1380-batch-processing-mgt/source/","path":"src/Layers/W1/BaseApp/Foundation/BatchProcessing/BatchProcessingMgt.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:27":{"name":"Confirm Management","url":"https://jonas-paprotka.de/ref/codeunit/27-confirm-management/"},"codeunit:28":{"name":"Error Message Management","url":"https://jonas-paprotka.de/ref/codeunit/28-error-message-management/"},"codeunit:29":{"name":"Error Message Handler","url":"https://jonas-paprotka.de/ref/codeunit/29-error-message-handler/"},"codeunit:431":{"name":"IC Outbox Export","url":"https://jonas-paprotka.de/ref/codeunit/431-ic-outbox-export/"},"table:54":{"name":"Batch Processing Session Map","url":"https://jonas-paprotka.de/ref/table/54-batch-processing-session-map/"},"codeunit:1380":{"name":"Batch Processing Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1380-batch-processing-mgt/"},"table:52":{"name":"Batch Processing Parameter","url":"https://jonas-paprotka.de/ref/table/52-batch-processing-parameter/"}},"procs":[{"name":"OnRun","line":20,"kind":"trigger","steps":[[22,"call","RunCustomProcessing",0]]},{"name":"BatchProcess","line":48,"kind":"procedure","params":5,"steps":[[62,"call","SetProcessingCodeunit",1],[73,"ext","codeunit",27,"GetResponseOrDefault",2]]},{"name":"BatchProcess","line":80,"kind":"procedure","params":2,"steps":[[96,"event","OnBeforeBatchProcess",0],[104,"call","FillBatchProcessingMap",1],[114,"ext","codeunit",28,"Activate",1],[115,"ext","codeunit",28,"PushContext",4],[116,"call","BatchShouldBeProcessedInBackground",2],[122,"call","CanProcessRecord",1],[123,"call","ProcessRecord",2],[125,"event","OnBatchProcessOnAfterIncreaseCounterPosted",0],[129,"event","OnBatchProcessOnBeforeResetBatchID",0],[133,"call","ResetBatchID",0],[136,"event","OnBatchProcessOnBeforeShowMessage",1],[142,"ext","codeunit",29,"InformAboutErrors",1],[143,"ext","codeunit",28,"PopContext",1],[148,"event","OnAfterBatchProcess",0]]},{"name":"BatchProcessGenJournalLine","line":151,"kind":"procedure","params":2,"steps":[[159,"event","OnBeforeBatchProcessGenJournalLine",0],[161,"ext","codeunit",28,"Activate",1],[166,"ext","codeunit",431,"DownloadBatchFiles",1],[166,"call","GetICBatchFileName",0],[170,"ext","codeunit",29,"ShowErrors",0]]},{"name":"GetICBatchFileName","line":173,"kind":"procedure","access":"local","params":0,"steps":[[177,"event","OnGetICBatchFileName",0]]},{"name":"CanProcessRecord","line":180,"kind":"procedure","access":"local","params":1,"steps":[[186,"event","OnVerifyRecord",0],[190,"ext","codeunit",28,"LogError",3]]},{"name":"FillBatchProcessingMap","line":196,"kind":"procedure","params":1,"steps":[[200,"call","DeleteLostParameters",1],[201,"call","InsertBatchProcessingSessionMapEntry",1]]},{"name":"GetErrorMessages","line":205,"kind":"procedure","params":1,"steps":[[209,"ext","codeunit",28,"GetErrors",1]]},{"name":"InsertBatchProcessingSessionMapEntry","line":212,"kind":"procedure","access":"local","params":1,"steps":[[224,"write",54,"Insert"]]},{"name":"InvokeProcessing","line":227,"kind":"procedure","access":"local","params":1,"steps":[[237,"ext","codeunit",1380,"SetRecRefForCustomProcessing",1],[238,"run","codeunit",1380],[239,"ext","codeunit",1380,"GetRecRefForCustomProcessing",1],[243,"ext","codeunit",1380,"GetIsCustomProcessingHandled",0],[244,"ext","codeunit",28,"PushContext",4],[246,"event","OnInvokeProcessingOnBeforeRunProcessingCodeunitID",0],[248,"event","OnInvokeProcessingOnAfterRunProcessingCodeunitID",0],[250,"ext","codeunit",1380,"GetIsCustomProcessingHandled",0],[251,"ext","codeunit",1380,"GetKeepParameters",0],[254,"ext","codeunit",28,"LogError",3],[255,"ext","codeunit",28,"PopContext",1]]},{"name":"RunCustomProcessing","line":264,"kind":"procedure","access":"local","params":0,"steps":[[269,"event","OnCustomProcessing",0]]},{"name":"ProcessRecord","line":280,"kind":"procedure","access":"local","params":2,"steps":[[284,"event","OnBeforeBatchProcessing",0],[286,"call","InvokeProcessing",1],[288,"event","OnAfterBatchProcessing",0]]},{"name":"ResetBatchID","line":293,"kind":"procedure","params":0,"steps":[[300,"write",52,"DeleteAll"],[303,"write",54,"DeleteAll"]]},{"name":"AddArtifact","line":311,"kind":"procedure","params":3,"steps":[[313,"event","OnAddArtifact",0]]},{"name":"HasArtifacts","line":316,"kind":"procedure","params":1,"steps":[[318,"event","OnHasArtifacts",0]]},{"name":"GetArtifacts","line":321,"kind":"procedure","params":2,"steps":[[323,"event","OnGetArtifacts",0]]},{"name":"DeleteBatchProcessingSessionMapForRecordId","line":326,"kind":"procedure","params":1,"steps":[[332,"write",54,"DeleteAll"]]},{"name":"DeleteLostParameters","line":335,"kind":"procedure","access":"local","params":1,"steps":[[348,"write",52,"DeleteAll"],[350,"write",54,"DeleteAll"]]},{"name":"SetParameter","line":354,"kind":"procedure","params":2,"steps":[[359,"call","InitBatchID",0],[367,"event","OnSetParameterOnBeforeParameterInsert",0],[369,"write",52,"Insert"]]},{"name":"SetParametersForPageID","line":372,"kind":"procedure","params":1,"steps":[[379,"event","OnBeforeSetParametersForPageID",1],[393,"event","OnSetParametersForPageIDOnAfterCalcDoInvoice",0],[398,"call","SetParameter",2],[399,"call","SetParameter",2],[404,"call","SetParameter",2],[405,"call","SetParameter",2]]},{"name":"GetBooleanParameter","line":429,"kind":"procedure","params":3,"steps":[[434,"call","GetTextParameter",3]]},{"name":"GetIntegerParameter","line":444,"kind":"procedure","params":3,"steps":[[449,"call","GetTextParameter",3]]},{"name":"GetDateParameter","line":459,"kind":"procedure","params":3,"steps":[[464,"call","GetTextParameter",3]]},{"name":"GetTimeParameter","line":474,"kind":"procedure","params":3,"steps":[[479,"call","GetTextParameter",3]]},{"name":"IsActive","line":489,"kind":"procedure","params":0,"steps":[[491,"event","OnSystemSetBatchProcessingActive",0]]},{"name":"GetBatchFromSession","line":509,"kind":"procedure","params":2,"steps":[[518,"write",54,"Modify"]]},{"name":"BatchShouldBeProcessedInBackground","line":533,"kind":"procedure","access":"local","params":2,"steps":[[539,"event","OnBeforeBatchShouldBeProcessedInBackground",0],[543,"call","IsPostWithJobQueueEnabled",0],[546,"call","ProcessBatchInBackground",2]]},{"name":"IsPostWithJobQueueEnabled","line":552,"kind":"procedure","access":"local","params":0,"steps":[[554,"event","OnIsPostWithJobQueueEnabled",0]]},{"name":"ProcessBatchInBackground","line":557,"kind":"procedure","access":"local","params":2,"steps":[[559,"event","OnProcessBatchInBackground",0]]}]}