---
title: "Codeunit 1294 OCR Service Mgt."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/1294-ocr-service-mgt/
type: codeunit
id: 1294
name: "OCR Service Mgt."
app: "Base Application"
namespace: Microsoft.EServices.EDocument
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/1294-ocr-service-mgt/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 1294 OCR Service Mgt.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/1294-ocr-service-mgt/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.EServices.EDocument |
| Versions | 17-28 |
| Source file | eServices/EDocument/OCRServiceMgt.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetURLsToDefaultRSO | (var Record OCR Service Setup) | - | public | 17-28 | - | - |
| CheckCredentials | () | - | public | 17-28 | - | - |
| GetCredentialsErrText | () | Text | public | 17-28 | - | - |
| GetCredentialsQstText | () | Text | public | 17-28 | - | - |
| Authenticate | () | Boolean | public | 17-28 | - | - |
| UpdateOrganizationInfo | (var Record OCR Service Setup) | - | public | 17-28 | - | - |
| UpdateOcrDocumentTemplates | () | - | public | 17-28 | - | - |
| RsoGetRequest | (Text, var InStream) | Boolean | public | 17-28 | - | - |
| RsoGetRequestBinary | (Text, var InStream, var Text) | Boolean | public | 17-28 | - | - |
| RsoPutRequest | (Text, Text, var InStream) | Boolean | public | 17-28 | - | - |
| RsoPostRequest | (Text, Text, var InStream) | Boolean | public | 17-28 | - | - |
| RsoDeleteRequest | (Text, Text, var InStream) | Boolean | public | 17-28 | - | - |
| RsoRequest | (Text, Code[6], Text, var InStream) | Boolean | public | 17-28 | - | - |
| RsoRequest | (Text, Code[6], Text, var Text, var Text, var Text, var Integer) | Boolean | public | 17-28 | - | - |
| DateConvertYYYYMMDD2XML | (Text) | Text | public | 17-28 | - | - |
| DateConvertXML2YYYYMMDD | (Text) | Text | public | 17-28 | - | - |
| GetOcrServiceSetupExtended | (var Record OCR Service Setup, Boolean) | - | public | 17-28 | - | - |
| StartUpload | (Integer) | Boolean | public | 17-28 | - | - |
| UploadImage | (var Codeunit Temp Blob, Text, Text[50], Code[20], RecordId) | Boolean | public | 17-28 | - | - |
| UploadLearningDocument | (var Codeunit Temp Blob, Text, RecordId) | Boolean | public | 17-28 | - | - |
| UploadAttachment | (var Codeunit Temp Blob, Text, Text[50], Code[20], RecordId) | Boolean | public | 17-28 | - | - |
| UploadCorrectedOCRFile | (Record Incoming Document) | Boolean | public | 17-28 | - | - |
| CorrectOCRFile | (Record Incoming Document, var Codeunit Temp Blob) | - | public | 17-28 | - | - |
| CorrectOCRFileNode | (var DotNet XmlNode, Record Incoming Document, Integer) | - | public | 17-28 | - | - |
| ValidateUpdatedOCRFields | (Record Incoming Document) | - | public | 17-28 | - | - |
| GetOriginalOCRXMLRootNode | (Record Incoming Document, var DotNet XmlNode) | - | public | 17-28 | - | - |
| GetOCRServiceDocumentReference | (Record Incoming Document) | Text[50] | public | 17-28 | - | - |
| GetDocumentList | (var InStream) | Boolean | public | 17-28 | - | - |
| GetDocuments | (Text) | Integer | public | 17-28 | - | - |
| GetDocumentsExcludeProcessed | () | - | public | 17-28 | - | - |
| GetDocumentStatus | (Text) | - | public | 17-28 | - | - |
| GetDocumentForAttachment | (var Record Incoming Document Attachment) | Integer | public | 17-28 | - | - |
| GetDocumentId | (Text) | Text | public | 17-28 | - | - |
| UpdateIncomingDocWithOCRData | (var Record Incoming Document, var DotNet XmlNode) | - | public | 17-28 | - | - |
| LogActivitySucceeded | (RecordId, Text, Text) | - | public | 17-28 | - | - |
| LogActivityFailed | (RecordId, Text, Text) | - | public | 17-28 | - | - |
| HandleOCRRegisterServiceConnection | (var Record Service Connection) | - | public | 17-28 | - | - |
| TestConnection | (var Record OCR Service Setup) | - | public | 17-28 | - | - |
| SetupConnection | (var Record OCR Service Setup) | Boolean | public | 17-28 | - | - |
| OcrServiceIsEnable | () | Boolean | public | 17-28 | - | - |
| GetStatusHyperLink | (Record Incoming Document) | Text | public | 17-28 | - | - |
| GetFeatureTelemetryName | () | Text | internal | 21-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeGetOriginalOCRXMLRootNode | (Record Incoming Document, var DotNet XmlNode, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeDownloadDocument | (Text[50], Text[50], var Integer, var Boolean) | 22-28 | - | - |
| Integration event | OnCorrectOCRFileOnAfterCorrectOCRFileNodes | (var DotNet XmlNode, var Record Incoming Document) | 25-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.
