{"title":"Codeunit 336 No. Series Cop. Tools Impl., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/336-no-series-cop-tools-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":336,"name":"No. Series Cop. Tools Impl.","app":"Business Foundation","url":"https://jonas-paprotka.de/ref/codeunit/336-no-series-cop-tools-impl/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/336-no-series-cop-tools-impl/source/","path":"src/Business Foundation/App/NoSeriesCopilot/src/Copilot/Tools/NoSeriesCopToolsImpl.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:310":{"name":"No. Series","url":"https://jonas-paprotka.de/ref/codeunit/310-no-series/"},"table:2000000136":{"name":"Table Metadata","url":"https://jonas-paprotka.de/ref/table/2000000136-table-metadata/"},"codeunit:337":{"name":"No. Series Text Match Impl.","url":"https://jonas-paprotka.de/ref/codeunit/337-no-series-text-match-impl/"},"table:2000000041":{"name":"Field","url":"https://jonas-paprotka.de/ref/table/2000000041-field/"}},"procs":[{"name":"GetUserSpecifiedOrExistingNumberPatternsGuidelines","line":19,"kind":"procedure","params":4,"steps":[[21,"call","CheckIfPatternSpecified",1],[29,"call","BuildExistingPatternIfExist",1]]},{"name":"CheckIfTablesSpecified","line":32,"kind":"procedure","params":1,"steps":[[34,"call","GetEntities",1]]},{"name":"CheckIfPatternSpecified","line":48,"kind":"procedure","access":"local","params":1,"steps":[[50,"call","GetPattern",1]]},{"name":"BuildExistingPatternIfExist","line":64,"kind":"procedure","access":"local","params":1,"steps":[[66,"call","BuildExistingPatternFromNoSeriesToChangeList",2],[69,"call","BuildExistingPatternFromNoSeries",1]]},{"name":"BuildExistingPatternFromNoSeriesToChangeList","line":73,"kind":"procedure","access":"local","params":2,"steps":[[87,"call","BuildExistingPattern",2]]},{"name":"BuildExistingPatternFromNoSeries","line":91,"kind":"procedure","access":"local","params":1,"steps":[[95,"call","CheckIfNumberSeriesExists",0],[98,"call","BuildExistingPattern",2]]},{"name":"BuildExistingPattern","line":109,"kind":"procedure","access":"local","params":2,"steps":[[119,"call","BuildNoSeriesLineJson",1]]},{"name":"BuildNoSeriesLineJson","line":132,"kind":"procedure","access":"local","params":1,"steps":[[137,"ext","codeunit",310,"GetNoSeriesLine",4]]},{"name":"RetrieveSetupTables","line":146,"kind":"procedure","params":1,"steps":[[155,"call","CheckIfSetupTableAndAddToList",2]]},{"name":"CheckIfSetupTableAndAddToList","line":159,"kind":"procedure","access":"local","params":2,"steps":[[161,"call","IsSetupTable",1],[165,"write",2000000136,"Insert"]]},{"name":"IsSetupTable","line":168,"kind":"procedure","access":"local","params":1,"steps":[[170,"call","HasPermissionToReadTable",1],[173,"call","IsOnlyOneRecord",1],[176,"call","IsPrimaryKeyIsEmptyCodeField",1]]},{"name":"IsRelevant","line":226,"kind":"procedure","params":3,"steps":[[234,"call","RemoveTextPart",2],[237,"ext","codeunit",337,"IsRelevant",2]]},{"name":"GenerateChunkedTablesListInYamlFormat","line":243,"kind":"procedure","params":4,"steps":[[253,"call","AddAreaYamlBlock",4]]},{"name":"AddAreaYamlBlock","line":259,"kind":"procedure","access":"local","params":4,"steps":[[270,"call","AddFieldYamlBlock",5]]},{"name":"AddFieldYamlBlock","line":274,"kind":"procedure","access":"local","params":5,"steps":[[278,"call","GetMaxNumberOfTablesInOneChunk",0],[281,"call","RemoveTextParts",2],[281,"call","GetNoSeriesAbbreviations",0],[285,"call","AddAreaTag",3],[286,"call","GetYAMLIdentationText",1],[287,"call","GetYAMLIdentationText",1],[288,"call","AddNoSeriesInfo",3],[292,"write",2000000041,"Delete"]]},{"name":"AddAreaTag","line":295,"kind":"procedure","access":"local","params":3,"steps":[[298,"call","RemoveTextPart",2],[302,"call","GetYAMLIdentationText",1]]},{"name":"AddNoSeriesInfo","line":315,"kind":"procedure","access":"local","params":3,"steps":[[327,"ext","codeunit",310,"GetNoSeriesLine",4],[329,"call","GetYAMLIdentationText",1],[330,"call","GetYAMLIdentationText",1],[331,"call","GetYAMLIdentationText",1],[332,"call","GetYAMLIdentationText",1],[333,"call","GetYAMLIdentationText",1],[334,"call","GetYAMLIdentationText",1]]},{"name":"RemoveTextParts","line":338,"kind":"procedure","params":2,"steps":[[343,"call","RemoveTextPart",2]]},{"name":"ExtractAreaWithPrefix","line":356,"kind":"procedure","params":1,"steps":[[375,"call","CRLFSeparator",0]]}]}