{"title":"Codeunit 309 No. Series - Batch Impl., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/309-no-series-batch-impl/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":309,"name":"No. Series - Batch Impl.","app":"Business Foundation","url":"https://jonas-paprotka.de/ref/codeunit/309-no-series-batch-impl/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/309-no-series-batch-impl/source/","path":"src/Business Foundation/App/NoSeries/src/Batch/NoSeriesBatchImpl.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:309":{"name":"No. Series Line","url":"https://jonas-paprotka.de/ref/table/309-no-series-line/"},"codeunit:310":{"name":"No. Series","url":"https://jonas-paprotka.de/ref/codeunit/310-no-series/"},"codeunit:306":{"name":"No. Series - Stateless Impl.","url":"https://jonas-paprotka.de/ref/codeunit/306-no-series-stateless-impl/"}},"procs":[{"name":"SetInitialState","line":24,"kind":"procedure","params":1,"steps":[[26,"call","IsSameNoSeriesLine",1],[34,"call","CopyNoSeriesLinesToTemp",1],[37,"write",309,"Insert"]]},{"name":"PeekNextNo","line":52,"kind":"procedure","params":2,"steps":[[56,"call","GetNoSeriesLine",3]]},{"name":"PeekNextNo","line":60,"kind":"procedure","params":2,"steps":[[64,"call","SyncGlobalLineWithProvidedLine",2],[65,"ext","codeunit",310,"PeekNextNo",2]]},{"name":"GetNextNo","line":68,"kind":"procedure","params":3,"steps":[[72,"call","GetNoSeriesLine",4]]},{"name":"GetNextNo","line":76,"kind":"procedure","params":3,"steps":[[81,"call","SyncGlobalLineWithProvidedLine",2],[82,"ext","codeunit",310,"GetNextNo",3]]},{"name":"SimulateGetNextNo","line":87,"kind":"procedure","params":3,"steps":[[96,"call","SetSimulationMode",0],[98,"call","GetNoSeriesLine",3],[99,"ext","codeunit",310,"MayProduceGaps",1],[103,"ext","codeunit",306,"EnsureLastNoUsedIsWithinValidRange",2],[106,"write",309,"Modify"],[107,"call","GetNextNo",3]]},{"name":"GetLastNoUsed","line":110,"kind":"procedure","params":1,"steps":[[115,"call","GetNoSeriesLine",4],[117,"ext","codeunit",310,"GetLastNoUsed",1]]},{"name":"GetLastNoUsed","line":120,"kind":"procedure","params":1,"steps":[[124,"call","SyncGlobalLineWithProvidedLine",2],[125,"ext","codeunit",310,"GetLastNoUsed",1]]},{"name":"SaveState","line":137,"kind":"procedure","params":1,"steps":[[144,"call","UpdateNoSeriesLine",1]]},{"name":"SaveState","line":147,"kind":"procedure","params":0,"steps":[[154,"call","UpdateNoSeriesLine",1]]},{"name":"UpdateNoSeriesLine","line":159,"kind":"procedure","access":"local","params":1,"steps":[[165,"write",309,"Modify",1],[167,"write",309,"Modify"]]},{"name":"GetNoSeriesLine","line":175,"kind":"procedure","params":4,"steps":[[180,"ext","codeunit",310,"GetNoSeriesLine",4],[181,"call","CopyNoSeriesLinesToTemp",1],[183,"ext","codeunit",310,"GetNoSeriesLine",4],[185,"call","ClearGlobalLine",0]]},{"name":"CopyNoSeriesLinesToTemp","line":193,"kind":"procedure","access":"local","params":1,"steps":[[197,"call","IsNoSeriesCopied",1],[203,"write",309,"Insert"],[206,"call","ClearGlobalLine",0]]},{"name":"SyncGlobalLineWithProvidedLine","line":223,"kind":"procedure","access":"local","params":2,"steps":[[228,"ext","codeunit",310,"GetNoSeriesLine",4],[229,"call","ClearGlobalLine",0],[230,"call","SetInitialState",1]]}]}