---
title: "Codeunit 1630 Office Management"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/1630-office-management/
type: codeunit
id: 1630
name: "Office Management"
app: "Base Application"
namespace: Microsoft.CRM.Outlook
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/1630-office-management/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 1630 Office Management

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/1630-office-management/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.CRM.Outlook |
| Versions | 17-28 |
| Source file | CRM/Outlook/OfficeManagement.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| InitializeHost | (DotNet OfficeHost, Text) | - | public | 17-28 | - | - |
| InitializeContext | (Record Office Add-in Context) | - | public | 17-28 | - | - |
| AddRecipient | (Text[100], Text[80]) | - | public | 17-28 | - | - |
| AttachAvailable | () | Boolean | public | 17-28 | - | - |
| AttachDocument | (Text, Text, Text, Text) | - | public | 17-23 | Pending 17.2 | Please use the overload with the stream parameter |
| AttachDocument | (InStream, Text, Text, Text) | - | public | 17-28 | - | - |
| AttachDocument | (Text, Text) | - | public | 17-28 | - | - |
| ChangeCompany | (Text) | - | public | 17-28 | - | - |
| CheckForExistingInvoice | (Code[20]) | Boolean | public | 17-28 | - | - |
| CloseEnginePage | () | - | public | 17-28 | - | - |
| DisplayOCRUploadSuccessMessage | (Integer) | - | public | 17-28 | - | - |
| GetContact | (var Record Contact, Code[20]) | Boolean | public | 17-28 | - | - |
| GetContext | (var Record Office Add-in Context) | - | public | 17-28 | - | - |
| GetEmailBody | (Record Office Add-in Context) | Text | public | 17-28 | - | - |
| GetFinancialsDocument | () | Text | public | 17-28 | - | - |
| EmailHasAttachments | () | Boolean | public | 17-28 | - | - |
| InitiateSendToOCR | (Code[20]) | - | public | 17-28 | - | - |
| InitiateSendToIncomingDocumentsWithPurchaseHeaderLink | (Record Purchase Header, Code[20]) | - | public | 17-28 | - | - |
| InitiateSendToIncomingDocuments | (Code[20]) | - | public | 17-28 | - | - |
| InitiateSendApprovalRequest | (Code[20]) | - | public | 17-28 | - | - |
| IsAvailable | () | Boolean | public | 17-28 | - | - |
| IsOutlookMobileApp | () | Boolean | public | 17-28 | - | - |
| IsPopOut | () | Boolean | public | 17-28 | - | - |
| OCRAvailable | () | Boolean | public | 17-28 | - | - |
| SelectAndChangeCompany | () | Text | public | 17-28 | - | - |
| SendApprovalRequest | (var Record Incoming Document) | - | public | 17-28 | - | - |
| SendToIncomingDocument | (var Record Exchange Object, var Record Incoming Document, var Record Incoming Document Attachment) | Boolean | public | 17-28 | - | - |
| SendToOCR | (var Record Incoming Document) | - | public | 17-28 | - | - |
| StoreValue | (Text, Text) | - | public | 17-28 | - | - |
| TraceCategory | () | Text | public | 17-18 | Pending 16.0 | For internal use only, the function has been replaced by GetOfficeAddinTelemetryCategory. |
| GetOfficeAddinTelemetryCategory | () | Text | public | 17-28 | - | - |
| SaveEmailBodyHTML | (Text, Text) | - | public | 17-28 | - | - |
| DisplayIncomingDocumentUploadSuccessMessage | (Integer) | - | public | 19-28 | - | - |
| DisplaySuccessMessage | (var Record Exchange Object) | - | public | 19-28 | - | - |
| DisplayAttachmentUploadSuccessMessage | (Integer) | - | public | 20-28 | - | - |
| InitiateSendToAttachments | (RecordRef) | - | public | 20-28 | - | - |
| SendToAttachments | (var Record Exchange Object) | Boolean | public | 20-28 | - | - |
| ChangeCompanyWithPrompt | (Text, Text) | Boolean | public | 22-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnGetExternalHandlerCodeunit | (Record Office Add-in Context, Text, var Integer) | 17-28 | - | - |

## 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.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
