{"title":"Codeunit 8003 Sub. Contract Renewal Mgt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/8003-sub-contract-renewal-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":8003,"name":"Sub. Contract Renewal Mgt.","app":"Subscription Billing","url":"https://jonas-paprotka.de/ref/codeunit/8003-sub-contract-renewal-mgt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/8003-sub-contract-renewal-mgt/source/","path":"src/Apps/W1/Subscription Billing/App/Contract Renewal/Codeunits/SubContractRenewalMgt.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:8002":{"name":"Create Sub. Contract Renewal","url":"https://jonas-paprotka.de/ref/codeunit/8002-create-sub-contract-renewal/"},"page:8006":{"name":"Contract Renewal Selection","url":"https://jonas-paprotka.de/ref/page/8006-contract-renewal-selection/"},"report:8000":{"name":"Select Contract Renewal","url":"https://jonas-paprotka.de/ref/report/8000-select-contract-renewal/"},"table:8062":{"name":"Cust. Sub. Contract Line","url":"https://jonas-paprotka.de/ref/table/8062-cust-sub-contract-line/"},"codeunit:27":{"name":"Confirm Management","url":"https://jonas-paprotka.de/ref/codeunit/27-confirm-management/"},"table:8001":{"name":"Sub. Contract Renewal Line","url":"https://jonas-paprotka.de/ref/table/8001-sub-contract-renewal-line/"},"table:37":{"name":"Sales Line","url":"https://jonas-paprotka.de/ref/table/37-sales-line/"},"table:36":{"name":"Sales Header","url":"https://jonas-paprotka.de/ref/table/36-sales-header/"},"codeunit:8021":{"name":"Text Management","url":"https://jonas-paprotka.de/ref/codeunit/8021-text-management/"},"codeunit:700":{"name":"Page Management","url":"https://jonas-paprotka.de/ref/codeunit/700-page-management/"},"page:9300":{"name":"Sales Quotes","url":"https://jonas-paprotka.de/ref/page/9300-sales-quotes/"},"page:9305":{"name":"Sales Order List","url":"https://jonas-paprotka.de/ref/page/9305-sales-order-list/"},"codeunit:1511":{"name":"Notification Lifecycle Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/1511-notification-lifecycle-mgt/"},"page:1518":{"name":"My Notifications","url":"https://jonas-paprotka.de/ref/page/1518-my-notifications/"},"table:1518":{"name":"My Notifications","url":"https://jonas-paprotka.de/ref/table/1518-my-notifications/"}},"procs":[{"name":"OnRun","line":12,"kind":"trigger","steps":[[17,"ext","codeunit",8002,"ClearCollectedSalesQuotes",0],[20,"call","CreateContractRenewalLines",1],[21,"call","CreateSalesQuoteForContract",1]]},{"name":"CreateContractRenewalLines","line":24,"kind":"procedure","access":"local","params":1,"steps":[[30,"call","CreateContractRenewalLinesFromContractLineSelection",2]]},{"name":"StartContractRenewalFromContract","line":38,"kind":"procedure","access":"internal","params":1,"steps":[[43,"call","DropContractRenewalLines",1],[47,"call","FilterRenewableContractLines",2],[54,"ext","page",8006,"GetSalesQuoteCreated",0],[55,"ext","codeunit",8002,"OpenSalesQuotes",0]]},{"name":"CreateContractRenewalLinesFromContractLineSelection","line":58,"kind":"procedure","access":"local","params":2,"steps":[[63,"ext","report",8000,"SetAddVendorServices",1],[66,"ext","report",8000,"InsertFromCustContrLine",1]]},{"name":"CreateSalesQuoteForContract","line":70,"kind":"procedure","access":"local","params":1,"steps":[[83,"event","OnBeforeRunCreateContractRenewalFromContract",1],[88,"ext","codeunit",8002,"ClearCollectedSalesQuotes",0],[89,"run","codeunit",8002]]},{"name":"FilterRenewableContractLines","line":93,"kind":"procedure","access":"local","params":2,"steps":[[100,"ext","table",8062,"FilterOnServiceObjectContractLineType",0],[111,"event","OnAfterFilterRenewableSubContrLines",0]]},{"name":"DropContractRenewalLines","line":114,"kind":"procedure","access":"local","params":1,"steps":[[123,"ext","codeunit",27,"GetResponse",2],[125,"write",8001,"DeleteAll",1]]},{"name":"IsContractRenewal","line":129,"kind":"procedure","access":"internal","params":1,"steps":[[131,"ext","table",37,"IsContractRenewalQuote",0]]},{"name":"IsContractRenewal","line":155,"kind":"procedure","access":"internal","params":1,"steps":[[163,"ext","table",37,"IsContractRenewal",0]]},{"name":"ShowRenewalSalesDocumentForContract","line":177,"kind":"procedure","access":"internal","params":2,"steps":[[198,"write",36,"Insert"],[199,"ext","codeunit",8021,"AppendText",3],[207,"ext","codeunit",700,"PageRun",1],[209,"ext","codeunit",8021,"ReplaceInvalidFilterChar",1],[216,"run","page",9300],[218,"run","page",9305]]},{"name":"NotifyIfLinesNotShown","line":241,"kind":"procedure","access":"internal","params":1,"steps":[[250,"call","NotificationIsActiveForLinesNotShown",0],[255,"ext","table",8062,"FilterOnServiceObjectContractLineType",0],[258,"call","PrepareNotification",5],[258,"call","GetNotificationIDForInvalidLinesHidden",0],[260,"ext","codeunit",1511,"SendNotification",2]]},{"name":"NotificationIsActiveForLinesNotShown","line":264,"kind":"procedure","access":"local","params":0,"steps":[[269,"call","GetNotificationIDForInvalidLinesHidden",0],[270,"ext","page",1518,"InitializeNotificationsWithDefaultState",0],[271,"call","GetNotificationIDForInvalidLinesHidden",0],[274,"ext","table",1518,"IsEnabled",1],[274,"call","GetNotificationIDForInvalidLinesHidden",0]]},{"name":"HideNotificationActiveForLinesNotShownForCurrentUser","line":286,"kind":"procedure","access":"internal","params":1,"steps":[[290,"call","GetNotificationIDForInvalidLinesHidden",0],[291,"ext","table",1518,"Disable",1]]},{"name":"InitializeNotificationLinesNotShown","line":295,"kind":"procedure","access":"local","params":0,"steps":[[301,"call","GetNotificationIDForInvalidLinesHidden",0],[302,"ext","table",1518,"InsertDefault",4],[303,"call","GetNotificationIDForInvalidLinesHidden",0]]}]}