{"title":"Table 5715 Item Substitution, extension points 29","url":"https://jonas-paprotka.de/ref/table/5715-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":"table","id":5715,"name":"Item Substitution","app":"Base Application","url":"https://jonas-paprotka.de/ref/table/5715-item-substitution/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/table/5715-item-substitution/source/","path":"src/Layers/W1/BaseApp/Inventory/Item/Substitution/ItemSubstitution.Table.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/"},"table:5716":{"name":"Substitution Condition","url":"https://jonas-paprotka.de/ref/table/5716-substitution-condition/"}},"procs":[{"name":"No..OnValidate","line":28,"kind":"trigger","steps":[[33,"call","DeleteInterchangeableItem",6]]},{"name":"Variant Code.OnValidate","line":49,"kind":"trigger","steps":[[52,"call","RecreateSubstEntry",2]]},{"name":"Substitute No..OnValidate","line":64,"kind":"trigger","steps":[[74,"call","DeleteInterchangeableItem",6],[82,"call","SetItemVariantDescription",4]]},{"name":"Substitute Variant Code.OnValidate","line":91,"kind":"trigger","steps":[[100,"call","RecreateSubstEntry",2],[102,"call","GetItemVariantDescription",0]]},{"name":"Interchangeable.OnValidate","line":123,"kind":"trigger","steps":[[128,"call","DeleteInterchangeableItem",6],[130,"call","CreateInterchangeableItem",0]]},{"name":"Type.OnValidate","line":156,"kind":"trigger","steps":[[160,"call","DeleteInterchangeableItem",6],[168,"validate",5715,"No."],[169,"validate",5715,"Substitute No."]]},{"name":"Substitute Type.OnValidate","line":178,"kind":"trigger","steps":[[188,"call","DeleteInterchangeableItem",6]]},{"name":"OnDelete","line":242,"kind":"trigger","steps":[[247,"call","ConfirmDeletion",0],[248,"call","DeleteInterchangeableItem",6],[259,"write",5715,"Modify"],[269,"write",5716,"DeleteAll"]]},{"name":"CreateSubstitution","line":283,"kind":"procedure","access":"local","params":5,"steps":[[293,"call","SetItemVariantDescription",4]]},{"name":"ConfirmDeletion","line":296,"kind":"procedure","access":"local","params":0,"steps":[[301,"event","OnBeforeConfirmDeletion",1]]},{"name":"CreateSubstitutionItem2Item","line":308,"kind":"procedure","params":5,"steps":[[310,"call","CreateSubstitution",5],[311,"write",5715,"Insert"],[313,"call","CreateSubstitution",5]]},{"name":"CreateInterchangeableItem","line":316,"kind":"procedure","access":"local","params":0,"steps":[[326,"call","SetDescription",3],[328,"event","OnCreateInterchangeableItemOnBeforeInsertOrModifyItemSubstitution",0],[330,"write",5715,"Modify"],[332,"write",5715,"Insert"]]},{"name":"DeleteInterchangeableItem","line":335,"kind":"procedure","access":"local","params":6,"steps":[[354,"write",5716,"DeleteAll"],[356,"write",5715,"Delete"]]},{"name":"RecreateSubstEntry","line":361,"kind":"procedure","access":"local","params":2,"steps":[[364,"call","DeleteInterchangeableItem",6]]},{"name":"SetItemVariantDescription","line":400,"kind":"procedure","params":4,"steps":[[420,"event","OnAfterSetItemVariantDescription",0]]}]}