{"title":"Codeunit 8005 Create Subscription Header, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/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":8005,"name":"Create Subscription Header","app":"Subscription Billing","url":"https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/8005-create-subscription-header/source/","path":"src/Apps/W1/Subscription Billing/App/Import/Codeunits/CreateSubscriptionHeader.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:8057":{"name":"Subscription Header","url":"https://jonas-paprotka.de/ref/table/8057-subscription-header/"}},"procs":[{"name":"OnRun","line":10,"kind":"trigger","steps":[[13,"call","TestImportedServiceObject",0],[14,"call","CreateServiceObject",0]]},{"name":"TestImportedServiceObject","line":19,"kind":"procedure","access":"local","params":0,"steps":[[25,"call","TestIfServiceObjectSeriesNoCanUseManualNos",0],[32,"event","OnAfterTestImportedSubscriptionHeader",0]]},{"name":"TestIfServiceObjectSeriesNoCanUseManualNos","line":35,"kind":"procedure","access":"local","params":0,"steps":[[41,"ext","codeunit",310,"TestManual",1]]},{"name":"CreateServiceObject","line":44,"kind":"procedure","access":"local","params":0,"steps":[[50,"write",8057,"Insert",1],[51,"ext","table",8057,"SkipInsertServiceCommitmentsFromStandardServCommPackages",1],[52,"ext","table",8057,"SetHideValidationDialog",1],[53,"event","OnAfterSubscriptionHeaderInsert",0],[56,"validate",8057,"Source No."],[59,"validate",8057,"Quantity"],[61,"validate",8057,"Unit of Measure"],[63,"validate",8057,"Customer Reference"],[65,"validate",8057,"Serial No."],[67,"validate",8057,"Version"],[69,"validate",8057,"Key"],[71,"validate",8057,"Provision Start Date"],[73,"validate",8057,"Provision End Date"],[75,"validate",8057,"End-User Customer No."],[77,"validate",8057,"End-User Contact No."],[79,"validate",8057,"Bill-to Customer No."],[81,"validate",8057,"Bill-to Contact No."],[83,"validate",8057,"Ship-to Code"],[84,"write",8057,"Modify",1],[85,"event","OnAfterSubscriptionHeaderModify",0]]}]}