---
title: "Codeunit 2104 O365 Send + Resend Invoice"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/2104-o365-send-resend-invoice/
type: codeunit
id: 2104
name: "O365 Send + Resend Invoice"
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 2104 O365 Send + Resend Invoice

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/2104-o365-send-resend-invoice/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SendOrResendSalesDocument | (Record O365 Sales Document) | Boolean | public | 17-23 | - | - |
| ResendSalesInvoice | (Record Sales Invoice Header) | Boolean | public | 17-23 | - | - |
| SendSalesInvoiceOrQuote | (Record Sales Header) | Boolean | public | 17-23 | - | - |
| SendSalesInvoiceOrQuoteFromBC | (Record Sales Header) | Boolean | public | 17-23 | - | - |
| SendInvoiceFromQuote | (Record Sales Header, Boolean) | Boolean | public | 17-23 | - | - |
| MakeInvoiceFromQuote | (var Record Sales Header, Record Sales Header, Boolean) | Boolean | public | 17-23 | - | - |
| CheckDocumentIfNoItemsExists | (Record Sales Header, Boolean, Record O365 Sales Document) | - | public | 17-23 | - | - |
| SendTestInvoiceFromBC | (Record Sales Header) | Boolean | public | 17-23 | - | - |
| CheckNextNoSeriesIsAvailable | (Option) | - | public | 17-23 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnCheckDocumentCanBeSentOnAfterCalcShouldConfirm | (Record Sales Header, var Boolean) | 20-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.
