{"title":"Codeunit 8007 Create Sub. Contract Line, extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/8007-create-sub-contract-line/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":8007,"name":"Create Sub. Contract Line","app":"Subscription Billing","url":"https://jonas-paprotka.de/ref/codeunit/8007-create-sub-contract-line/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/8007-create-sub-contract-line/source/","path":"src/Apps/W1/Subscription Billing/App/Import/Codeunits/CreateSubContractLine.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:8009":{"name":"Imported Subscription Line","url":"https://jonas-paprotka.de/ref/table/8009-imported-subscription-line/"},"table:8062":{"name":"Cust. Sub. Contract Line","url":"https://jonas-paprotka.de/ref/table/8062-cust-sub-contract-line/"},"table:8059":{"name":"Subscription Line","url":"https://jonas-paprotka.de/ref/table/8059-subscription-line/"},"table:8065":{"name":"Vend. Sub. Contract Line","url":"https://jonas-paprotka.de/ref/table/8065-vend-sub-contract-line/"}},"procs":[{"name":"OnRun","line":11,"kind":"trigger","steps":[[14,"call","SkipRun",0],[16,"call","TestImportedServiceCommitment",0],[17,"call","CreateContractLine",0]]},{"name":"TestImportedServiceCommitment","line":28,"kind":"procedure","access":"local","params":0,"steps":[[34,"ext","table",8009,"IsContractCommentLine",0]]},{"name":"CreateContractLine","line":61,"kind":"procedure","access":"local","params":0,"steps":[[65,"call","CreateCustomerContractLine",0],[67,"call","CreateVendorContractLine",0],[71,"ext","table",8009,"ClearErrorTextAndSetProcessedFields",0]]},{"name":"CreateCustomerContractLine","line":74,"kind":"procedure","access":"local","params":0,"steps":[[80,"event","OnBeforeCreateCustomerContractLine",0],[81,"ext","table",8009,"IsContractCommentLine",0],[82,"call","CreateCustomerContractCommentLine",0],[84,"ext","table",8062,"InitFromServiceCommitment",2],[89,"write",8062,"Insert"],[95,"ext","table",8059,"ApplyContractDimensions",3],[96,"write",8059,"Modify",1],[97,"ext","table",8059,"UpdateRelatedVendorServiceCommDimensions",2],[99,"event","OnAfterCreateCustomerContractLine",0]]},{"name":"CreateCustomerContractCommentLine","line":102,"kind":"procedure","access":"local","params":0,"steps":[[108,"call","SetCustomerContractLineLineNo",1],[110,"write",8062,"Insert"]]},{"name":"SetCustomerContractLineLineNo","line":114,"kind":"procedure","access":"local","params":1,"steps":[[117,"ext","table",8062,"GetNextLineNo",1]]},{"name":"CreateVendorContractLine","line":123,"kind":"procedure","access":"local","params":0,"steps":[[128,"event","OnBeforeCreateVendorContractLine",0],[129,"ext","table",8009,"IsContractCommentLine",0],[130,"call","CreateVendorContractCommentLine",0],[132,"ext","table",8065,"InitFromServiceCommitment",2],[137,"write",8065,"Insert"],[143,"ext","table",8059,"ApplyContractDimensions",3],[144,"write",8059,"Modify"],[145,"ext","table",8065,"UpdateServiceCommitmentDimensions",0],[147,"event","OnAfterCreateVendorContractLine",0]]},{"name":"CreateVendorContractCommentLine","line":150,"kind":"procedure","access":"local","params":0,"steps":[[156,"call","SetVendorContractLineLineNo",1],[158,"write",8065,"Insert"]]},{"name":"SetVendorContractLineLineNo","line":162,"kind":"procedure","access":"local","params":1,"steps":[[165,"ext","table",8065,"GetNextLineNo",1]]}]}