{"title":"Codeunit 170 Standard Codes Mgt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/170-standard-codes-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":170,"name":"Standard Codes Mgt.","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/170-standard-codes-mgt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/170-standard-codes-mgt/source/","path":"src/Layers/W1/BaseApp/Utilities/StandardCodesMgt.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:175":{"name":"Standard Vendor Purchase Code","url":"https://jonas-paprotka.de/ref/table/175-standard-vendor-purchase-code/"},"table:172":{"name":"Standard Customer Sales Code","url":"https://jonas-paprotka.de/ref/table/172-standard-customer-sales-code/"},"codeunit:1511":{"name":"Notification Lifecycle Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1511-notification-lifecycle-mgt/"}},"procs":[{"name":"CheckCreatePurchRecurringLines","line":24,"kind":"procedure","params":1,"steps":[[28,"call","CanCreatePurchRecurringLines",1],[31,"call","TryFindFirstStandardPurchCodeToAdd",2],[35,"ext","table",175,"IsInsertRecurringLinesOnDocumentAutomatic",1],[37,"ext","table",175,"ApplyStdCodesToPurchaseLines",2],[39,"call","ShowGetPurchRecurringLinesNotification",1]]},{"name":"CheckCreateSalesRecurringLines","line":42,"kind":"procedure","params":1,"steps":[[46,"call","CanCreateSalesRecurringLines",1],[49,"call","TryFindFirstStandardSalesCodeToAdd",2],[53,"ext","table",172,"IsInsertRecurringLinesOnDocumentAutomatic",1],[55,"ext","table",172,"ApplyStdCodesToSalesLines",2],[57,"call","ShowGetSalesRecurringLinesNotification",1]]},{"name":"TryFindFirstStandardPurchCodeToAdd","line":60,"kind":"procedure","access":"local","params":2,"steps":[[62,"ext","table",175,"SetFilterByAutomaticAndAlwaysAskCodes",1]]},{"name":"TryFindFirstStandardSalesCodeToAdd","line":66,"kind":"procedure","access":"local","params":2,"steps":[[68,"ext","table",172,"SetFilterByAutomaticAndAlwaysAskCodes",1]]},{"name":"CanCreatePurchRecurringLines","line":77,"kind":"procedure","params":1,"steps":[[82,"event","OnBeforeCanCreatePurchRecurringLines",1],[98,"call","IsPurchDocumentEmpty",1]]},{"name":"CanCreateSalesRecurringLines","line":112,"kind":"procedure","access":"local","params":1,"steps":[[117,"event","OnBeforeCanCreateSalesRecurringLines",1],[138,"call","IsSalesDocumentEmpty",1]]},{"name":"GetSalesRecurringLines","line":147,"kind":"procedure","params":1,"steps":[[151,"event","OnBeforeGetSalesRecurringLines",0],[153,"ext","table",172,"SetFilterByAutomaticAndAlwaysAskCodes",1],[156,"ext","table",172,"IsInsertRecurringLinesOnDocumentAutomatic",1],[158,"ext","table",172,"ApplyStdCodesToSalesLines",2],[160,"ext","table",172,"InsertSalesLines",1]]},{"name":"GetPurchRecurringLines","line":163,"kind":"procedure","params":1,"steps":[[167,"event","OnBeforeGetPurchRecurringLines",0],[169,"ext","table",175,"SetFilterByAutomaticAndAlwaysAskCodes",1],[172,"ext","table",175,"IsInsertRecurringLinesOnDocumentAutomatic",1],[174,"ext","table",175,"ApplyStdCodesToPurchaseLines",2],[176,"ext","table",175,"InsertPurchLines",1]]},{"name":"CheckShowSalesRecurringLinesNotification","line":197,"kind":"procedure","params":1,"steps":[[199,"call","CanGetSalesRecurringLines",1],[200,"call","ShowGetSalesRecurringLinesNotification",1]]},{"name":"CheckShowPurchRecurringLinesNotification","line":203,"kind":"procedure","params":1,"steps":[[205,"call","CanGetPurchRecurringLines",1],[206,"call","ShowGetPurchRecurringLinesNotification",1]]},{"name":"ShowGetSalesRecurringLinesNotification","line":209,"kind":"procedure","params":1,"steps":[[216,"event","OnBeforeShowGetSalesRecurringLinesNotification",1],[220,"call","GetSalesRecurringLinesNotificationId",0],[227,"ext","codeunit",1511,"SendNotificationWithAdditionalContext",3],[228,"call","GetSalesRecurringLinesNotificationId",0]]},{"name":"ShowGetPurchRecurringLinesNotification","line":231,"kind":"procedure","params":1,"steps":[[238,"event","OnBeforeShowGetPurchRecurringLinesNotification",1],[242,"call","GetPurchRecurringLinesNotificationId",0],[249,"ext","codeunit",1511,"SendNotificationWithAdditionalContext",3],[250,"call","GetPurchRecurringLinesNotificationId",0]]},{"name":"GetSalesRecurringLinesFromNotification","line":263,"kind":"procedure","params":1,"steps":[[276,"call","GetSalesRecurringLines",1]]},{"name":"GetPurchRecurringLinesFromNotification","line":279,"kind":"procedure","params":1,"steps":[[292,"call","GetPurchRecurringLines",1]]},{"name":"CanGetSalesRecurringLines","line":295,"kind":"procedure","params":1,"steps":[[299,"call","CanCreateSalesRecurringLines",1],[302,"ext","table",172,"SetFilterByAutomaticAndAlwaysAskCodes",1]]},{"name":"CanGetPurchRecurringLines","line":306,"kind":"procedure","params":1,"steps":[[313,"event","OnBeforeCanGetPurchRecurringLines",1],[323,"call","IsPurchDocumentEmpty",1],[331,"ext","table",175,"SetFilterByAutomaticAndAlwaysAskCodes",1]]},{"name":"OnAfterValidateSalesQuoteSellToCustomerName","line":336,"kind":"procedure","access":"local","params":2,"steps":[[338,"call","CheckCreateSalesRecurringLines",1]]},{"name":"OnAfterValidateSalesQuoteSellToCustomerNo","line":342,"kind":"procedure","access":"local","params":2,"steps":[[344,"call","CheckCreateSalesRecurringLines",1]]},{"name":"OnAfterValidateSalesOrderSellToCustomerName","line":348,"kind":"procedure","access":"local","params":2,"steps":[[350,"call","CheckCreateSalesRecurringLines",1]]},{"name":"OnAfterValidateSalesOrderSellToCustomerNo","line":354,"kind":"procedure","access":"local","params":2,"steps":[[356,"call","CheckCreateSalesRecurringLines",1]]},{"name":"OnAfterValidateSalesInvoiceSellToCustomerName","line":360,"kind":"procedure","access":"local","params":2,"steps":[[362,"call","CheckCreateSalesRecurringLines",1]]},{"name":"OnAfterValidateSalesInvoiceSellToCustomerNo","line":366,"kind":"procedure","access":"local","params":2,"steps":[[368,"call","CheckCreateSalesRecurringLines",1]]},{"name":"OnAfterValidateSalesCreditMemoSellToCustomerName","line":372,"kind":"procedure","access":"local","params":2,"steps":[[374,"call","CheckCreateSalesRecurringLines",1]]},{"name":"OnAfterValidateSalesCreditMemoSellToCustomerNo","line":378,"kind":"procedure","access":"local","params":2,"steps":[[380,"call","CheckCreateSalesRecurringLines",1]]},{"name":"OnAfterValidatePurchaseQuoteSellToVendorName","line":384,"kind":"procedure","access":"local","params":2,"steps":[[386,"call","CheckCreatePurchRecurringLines",1]]},{"name":"OnAfterValidatePurchaseQuoteSellToVendorNo","line":390,"kind":"procedure","access":"local","params":2,"steps":[[392,"call","CheckCreatePurchRecurringLines",1]]},{"name":"OnAfterValidatePurchaseInvoiceSellToVendorName","line":396,"kind":"procedure","access":"local","params":2,"steps":[[398,"call","CheckCreatePurchRecurringLines",1]]},{"name":"OnAfterValidatePurchaseInvoiceSellToVendorNo","line":402,"kind":"procedure","access":"local","params":2,"steps":[[404,"call","CheckCreatePurchRecurringLines",1]]},{"name":"OnAfterValidatePurchaseOrderSellToVendorName","line":408,"kind":"procedure","access":"local","params":2,"steps":[[410,"call","CheckCreatePurchRecurringLines",1]]},{"name":"OnAfterValidatePurchaseOrderSellToVendorNo","line":414,"kind":"procedure","access":"local","params":2,"steps":[[416,"call","CheckCreatePurchRecurringLines",1]]},{"name":"OnAfterValidatePurchaseCreditMemoSellToVendorName","line":420,"kind":"procedure","access":"local","params":2,"steps":[[422,"call","CheckCreatePurchRecurringLines",1]]},{"name":"OnAfterValidatePurchaseCreditMemoSellToVendorNo","line":426,"kind":"procedure","access":"local","params":2,"steps":[[428,"call","CheckCreatePurchRecurringLines",1]]}]}