---
title: "Codeunit 2100 O365 Sales Statistics"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/2100-o365-sales-statistics/
type: codeunit
id: 2100
name: "O365 Sales Statistics"
app: "Base Application"
versions: "17-23"
build: 23.5.16502.31399
obsolete: "Pending 21.0"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 2100 O365 Sales Statistics

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/2100-o365-sales-statistics/

| | |
| --- | --- |
| App | Base Application |
| Versions | 17-23 |
| Obsolete | Pending 21.0, seen from 21. Microsoft Invoicing has been discontinued. |
| Source file | Invoicing/O365SalesStatistics.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GenerateMonthlyOverview | (var Record Name/Value Buffer) | - | public | 17-23 | - | - |
| GenerateWeeklyOverview | (var Record Name/Value Buffer, Integer) | - | public | 17-23 | - | - |
| GenerateChart | (DotNet, var Record Name/Value Buffer, Text, Text) | - | public | 17-23 | - | - |
| GenerateMonthlyCustomers | (Integer, var Record Customer) | Boolean | public | 17-23 | - | - |
| GetCurrentAccountingPeriod | (var Record Accounting Period) | - | public | 17-23 | - | - |
| GetCustomersFromSalesInvoiceEntityAggregates | (var Record Sales Invoice Entity Aggregate, var Record Customer) | Boolean | public | 17-23 | - | - |
| GetRelativeMonthToFY | () | Integer | public | 17-23 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.

Jonas Paprotka, 2026-09-20.
