{"title":"Codeunit 8029 Usage Based Billing Mgmt., extension points 29","url":"https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/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":8029,"name":"Usage Based Billing Mgmt.","app":"Subscription Billing","url":"https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/"},"major":29,"source":{"url":"https://jonas-paprotka.de/ref/codeunit/8029-usage-based-billing-mgmt/source/","path":"src/Apps/W1/Subscription Billing/App/Usage Based Billing/Codeunits/UsageBasedBillingMgmt.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:8016":{"name":"Usage Data Supp. Subscription","url":"https://jonas-paprotka.de/ref/table/8016-usage-data-supp-subscription/"},"codeunit:27":{"name":"Confirm Management","url":"https://jonas-paprotka.de/ref/codeunit/27-confirm-management/"},"table:8059":{"name":"Subscription Line","url":"https://jonas-paprotka.de/ref/table/8059-subscription-line/"},"table:8057":{"name":"Subscription Header","url":"https://jonas-paprotka.de/ref/table/8057-subscription-header/"},"table:8055":{"name":"Subscription Package","url":"https://jonas-paprotka.de/ref/table/8055-subscription-package/"},"table:8058":{"name":"Item Subscription Package","url":"https://jonas-paprotka.de/ref/table/8058-item-subscription-package/"},"table:8056":{"name":"Subscription Package Line","url":"https://jonas-paprotka.de/ref/table/8056-subscription-package-line/"},"codeunit:8075":{"name":"Extend Sub. Contract Mgt.","url":"https://jonas-paprotka.de/ref/codeunit/8075-extend-sub-contract-mgt/"}},"procs":[{"name":"ConnectSubscriptionsToServiceObjects","line":22,"kind":"procedure","params":1,"steps":[[41,"call","TestUsageDataSubscription",1],[43,"call","AskToProceedIfServiceObjectIsAssignedToMultipleSubscriptions",1],[44,"call","ErrorIfServiceObjectItemIsBlocked",1],[50,"call","ConnectSubscriptionToServiceObjectWithNewServiceCommitments",1],[52,"call","ConnectSubscriptionToServiceObjectWithExistingServiceCommitments",1],[55,"write",8016,"Modify"],[56,"ext","table",8016,"UpdateSubscriptionHeaderNoInImportedData",0]]},{"name":"DisconnectServiceCommitmentFromSubscription","line":62,"kind":"procedure","params":1,"steps":[[69,"ext","codeunit",27,"GetResponse",2],[70,"call","ResetSupplierReferenceEntryNoForServiceObject",2],[71,"ext","table",8016,"ResetServiceObjectAndServiceCommitment",0]]},{"name":"ResetSupplierReferenceEntryNoForServiceObject","line":75,"kind":"procedure","access":"local","params":2,"steps":[[81,"write",8059,"ModifyAll"]]},{"name":"ConnectSubscriptionToServiceObjectWithExistingServiceCommitments","line":84,"kind":"procedure","access":"internal","params":1,"steps":[[93,"call","CheckAndConnectServiceCommitmentToUsageDataSubscription",2],[96,"ext","table",8016,"SetErrorReason",1],[100,"validate",8016,"Subscription Header No."],[101,"validate",8016,"Subscription Line Entry No."],[102,"validate",8016,"Processing Status"]]},{"name":"CheckAndConnectServiceCommitmentToUsageDataSubscription","line":106,"kind":"procedure","access":"local","params":2,"steps":[[109,"ext","table",8016,"SetErrorReason",1],[110,"write",8016,"Modify"],[114,"write",8059,"Modify"]]},{"name":"CloseExistingServiceCommitments","line":118,"kind":"procedure","access":"local","params":5,"steps":[[125,"write",8059,"Modify"],[126,"ext","table",8059,"IsPartnerVendor",0],[129,"ext","table",8057,"UpdateServicesDates",0]]},{"name":"CheckIfServiceCommPackageHasUsageBasedReference","line":149,"kind":"procedure","access":"local","params":5,"steps":[[157,"ext","table",8055,"FilterCodeOnPackageFilter",1],[157,"ext","table",8058,"GetAllStandardPackageFilterForItem",2],[163,"ext","table",8056,"IsPartnerVendor",0],[164,"ext","table",8016,"SetErrorReason",1],[172,"ext","table",8016,"SetErrorReason",1]]},{"name":"CheckIfUsageDataSubscriptionIsSetToNewServiceCommitments","line":177,"kind":"procedure","access":"local","params":1,"steps":[[180,"ext","table",8016,"SetErrorReason",1]]},{"name":"TestUsageDataSubscription","line":183,"kind":"procedure","access":"local","params":1,"steps":[[186,"call","CheckIfUsageDataSubscriptionIsSetToNewServiceCommitments",1],[189,"ext","table",8016,"SetErrorReason",1]]},{"name":"AskToProceedIfServiceObjectIsAssignedToMultipleSubscriptions","line":192,"kind":"procedure","access":"local","params":1,"steps":[[201,"ext","codeunit",27,"GetResponse",2]]},{"name":"ErrorIfServiceObjectItemIsBlocked","line":205,"kind":"procedure","access":"local","params":1,"steps":[[214,"ext","table",8016,"SetErrorReason",1]]},{"name":"ConnectSubscriptionToServiceObjectWithNewServiceCommitments","line":217,"kind":"procedure","params":1,"steps":[[234,"call","FindCustomerServiceCommitmentFromServiceObject",3],[237,"ext","table",8016,"SetErrorReason",1],[241,"call","AssignVendorContractNoFromServiceCommitment",2],[244,"call","CheckIfServiceCommPackageHasUsageBasedReference",5],[247,"call","CloseExistingServiceCommitments",5],[252,"ext","codeunit",8075,"ExtendContract",8],[255,"validate",8016,"Subscription Header No."],[256,"validate",8016,"Subscription Line Entry No."],[257,"validate",8016,"Processing Status"]]}]}