{"title":"Codeunit 8026 Process Usage Data Billing","url":"https://jonas-paprotka.de/ref/codeunit/8026-process-usage-data-billing/","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-10","changedSince":"2026-09-22","source":{"feed":"https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json","package":"Microsoft.SubscriptionBilling.symbols.3099ffc7-4cf7-4df6-9b96-7e4bc2bb587c","build":"29.0.54011.55644","builds":{"26":"26.5.38752.40541","27":"27.5.46862.47359","28":"28.5.54151.54365","29":"29.0.54011.55644"},"code":{"28":{"url":"https://jonas-paprotka.de/ref/codeunit/8026-process-usage-data-billing/source/?v=28","repo":"https://github.com/microsoft/BCApps","branch":"releases/28.x","commit":"408a4cc8d3a4c54b60464cc14c964479facb9ba0","path":"src/Apps/W1/Subscription Billing/App/Usage Based Billing/Codeunits/ProcessUsageDataBilling.Codeunit.al","license":"MIT"},"29":{"url":"https://jonas-paprotka.de/ref/codeunit/8026-process-usage-data-billing/source/","repo":"https://github.com/microsoft/BCApps","branch":"releases/29.x","commit":"4303e5e584d3aa5d9e98cbc615525a5396ad6ed7","path":"src/Apps/W1/Subscription Billing/App/Usage Based Billing/Codeunits/ProcessUsageDataBilling.Codeunit.al","license":"MIT"}},"note":"Presence per major, highest build of each; 17 is the oldest major on the feed. Local procedures are not listed."},"object":{"type":"codeunit","id":8026,"name":"Process Usage Data Billing","app":"Subscription Billing","appByVersion":[{"app":"Subscription Billing","from":26}],"nameByVersion":[{"name":"Process Usage Data Billing","from":26}],"namespace":"Microsoft.SubscriptionBilling","versions":"26-29","majors":[26,27,28,29],"countries":["W1","DE","US"],"minors":{"W1":"26.0-29.0","DE":"26.0-29.0","US":"26.0-29.0"},"minorsUrl":"https://jonas-paprotka.de/ref/codeunit/8026-process-usage-data-billing/editions.json","extends":null,"extendsUrl":null,"sourceTable":null,"properties":{"tableNo":"Usage Data Import"},"extendedBy":[],"implementedBy":[],"sourceFile":"Usage Based Billing/Codeunits/ProcessUsageDataBilling.Codeunit.al","obsolete":null,"obsoleteSeenFrom":null,"byVersion":{"26":{"app":"Subscription Billing","name":"Process Usage Data Billing","ns":"Microsoft.SubscriptionBilling","obsolete":null,"target":"","sourceTable":"","props":{"tableNo":"Usage Data Import"},"counts":{"fields":0,"keys":0,"methods":7,"values":0},"stub":false},"27":{"app":"Subscription Billing","name":"Process Usage Data Billing","ns":"Microsoft.SubscriptionBilling","obsolete":null,"target":"","sourceTable":"","props":{"tableNo":"Usage Data Import"},"counts":{"fields":0,"keys":0,"methods":7,"values":0},"stub":false},"28":{"app":"Subscription Billing","name":"Process Usage Data Billing","ns":"Microsoft.SubscriptionBilling","obsolete":null,"target":"","sourceTable":"","props":{"tableNo":"Usage Data Import"},"counts":{"fields":0,"keys":0,"methods":9,"values":0},"stub":false},"29":{"app":"Subscription Billing","name":"Process Usage Data Billing","ns":"Microsoft.SubscriptionBilling","obsolete":null,"target":"","sourceTable":"","props":{"tableNo":"Usage Data Import"},"counts":{"fields":0,"keys":0,"methods":9,"values":0},"stub":false}},"fields":[],"keys":[],"procedures":[{"name":"SetRoundingPrecision","sig":"(var Decimal, Decimal, Record Currency)","named":"(var RoundingPrecision: Decimal; UnitPrice: Decimal; Currency: Record Currency)","returns":"","kind":"procedure","access":"internal","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var RoundingPrecision: Decimal; UnitPrice: Decimal; Currency: Record Currency)","returns":"","kind":"procedure","access":"internal","obsolete":null}]}],"events":[{"name":"OnBeforeProcessUsageDataBilling","sig":"(Record Usage Data Import)","named":"(UsageDataImport: Record \"Usage Data Import\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(UsageDataImport: Record \"Usage Data Import\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterProcessUsageDataBilling","sig":"(Record Usage Data Import)","named":"(UsageDataImport: Record \"Usage Data Import\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(UsageDataImport: Record \"Usage Data Import\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnUsageBasedPricingElseCaseOnProcessSubscriptionLine","sig":"(var Decimal, var Decimal, var Record Subscription Line, Record Usage Data Billing, var Boolean)","named":"(var UnitCost: Decimal; var NewServiceObjectQuantity: Decimal; var SubscriptionLine: Record \"Subscription Line\"; LastUsageDataBilling: Record \"Usage Data Billing\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var UnitCost: Decimal; var NewServiceObjectQuantity: Decimal; var SubscriptionLine: Record \"Subscription Line\"; LastUsageDataBilling: Record \"Usage Data Billing\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnUsageBasedPricingElseCaseOnCalculateCustomerUsageDataBillingPrice","sig":"(var Decimal, var Decimal, var Record Usage Data Billing, Record Customer Subscription Contract, var Boolean)","named":"(var UnitPrice: Decimal; var Amount: Decimal; var UsageDataBilling: Record \"Usage Data Billing\"; CustomerSubscriptionContract: Record \"Customer Subscription Contract\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var UnitPrice: Decimal; var Amount: Decimal; var UsageDataBilling: Record \"Usage Data Billing\"; CustomerSubscriptionContract: Record \"Customer Subscription Contract\"; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeProcessSubscriptionLine","sig":"(var Record Subscription Line)","named":"(var SubscriptionLine: Record \"Subscription Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var SubscriptionLine: Record \"Subscription Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterProcessSubscriptionLine","sig":"(var Record Subscription Line)","named":"(var SubscriptionLine: Record \"Subscription Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var SubscriptionLine: Record \"Subscription Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeCalculateUsageDataUnitPriceForPeriod","sig":"(Decimal, var Record Subscription Line, var Record Usage Data Billing)","named":"(UnitPrice: Decimal; var ServiceCommitment: Record \"Subscription Line\"; var UsageDataBilling: Record \"Usage Data Billing\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(UnitPrice: Decimal; var ServiceCommitment: Record \"Subscription Line\"; var UsageDataBilling: Record \"Usage Data Billing\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterCalculateUsageDataUnitPriceForPeriod","sig":"(var Decimal, var Record Subscription Line, var Record Usage Data Billing)","named":"(var UnitPrice: Decimal; var ServiceCommitment: Record \"Subscription Line\"; var UsageDataBilling: Record \"Usage Data Billing\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(var UnitPrice: Decimal; var ServiceCommitment: Record \"Subscription Line\"; var UsageDataBilling: Record \"Usage Data Billing\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]}],"values":[],"controls":[],"actions":[]}}