{"title":"Codeunit 6474 Serv. Item Substitution, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/6474-serv-item-substitution/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":6474,"name":"Serv. Item Substitution","app":"Base Application","url":"https://jonas-paprotka.de/ref/codeunit/6474-serv-item-substitution/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/6474-serv-item-substitution/source/","path":"src/Layers/W1/BaseApp/Service/Item/ServItemSubstitution.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:5715":{"name":"Item Substitution","url":"https://jonas-paprotka.de/ref/table/5715-item-substitution/"},"page:5954":{"name":"Service Item Substitutions","url":"https://jonas-paprotka.de/ref/page/5954-service-item-substitutions/"},"codeunit:6479":{"name":"Serv. Catalog Item Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/6479-serv-catalog-item-mgt/"},"table:5902":{"name":"Service Line","url":"https://jonas-paprotka.de/ref/table/5902-service-line/"},"codeunit:6453":{"name":"Serv. Item Check Avail.","url":"https://jonas-paprotka.de/ref/codeunit/6453-serv-item-check-avail/"},"codeunit:99000842":{"name":"Service Line-Reserve","url":"https://jonas-paprotka.de/ref/codeunit/99000842-service-line-reserve/"},"codeunit:5790":{"name":"Available to Promise","url":"https://jonas-paprotka.de/ref/codeunit/5790-available-to-promise/"}},"procs":[{"name":"ItemServiceSubstGet","line":34,"kind":"procedure","params":1,"steps":[[57,"write",5715,"DeleteAll"],[58,"call","InsertInSubstServiceList",3],[61,"run","page",5954],[73,"ext","codeunit",6479,"NonStockFSM",1],[82,"validate",5902,"No."],[83,"validate",5902,"Variant Code"],[85,"validate",5902,"Quantity"],[86,"validate",5902,"Unit of Measure Code"],[88,"ext","codeunit",6453,"ServiceInvLineCheck",1],[99,"ext","codeunit",99000842,"DeleteLine",1]]},{"name":"InsertInSubstServiceList","line":104,"kind":"procedure","access":"local","params":3,"steps":[[132,"event","OnInsertInSubstServiceListOnBeforeCalcQtyAvail",0],[134,"ext","codeunit",5790,"CalcQtyAvailabletoPromise",6],[139,"event","OnInsertInSubstServiceListOnAfterCalcQtyAvail",0],[143,"write",5715,"Insert"],[157,"write",5715,"Modify"],[177,"write",5715,"Insert"],[189,"write",5715,"Modify"]]}]}