---
title: "Codeunit 137 OCR Inc. Doc. via Job Queue, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/points/
object: https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
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/"
---

# Codeunit 137 OCR Inc. Doc. via Job Queue, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/points/

5 procedures and triggers with a step in src/Layers/W1/BaseApp/eServices/EDocument/OCRIncDocviaJobQueue.Codeunit.al, in source order, read from the text, not from a run.

## OnRun

[Line 14](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L14), trigger.

- [24](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L24) calls `SetJobQueueStatus`
- [28](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L28) calls [Codeunit 133 Send Incoming Document to OCR](https://jonas-paprotka.de/ref/codeunit/133-send-incoming-document-to-ocr/) `TrySendToOCR`
- [29](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L29) calls `SetJobQueueStatus`
- [33](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L33) calls [Codeunit 133 Send Incoming Document to OCR](https://jonas-paprotka.de/ref/codeunit/133-send-incoming-document-to-ocr/) `TryRetrieveFromOCR`
- [36](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L36) calls `SetJobQueueStatus`
- [41](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L41) calls `SetJobQueueStatus`

## SetJobQueueStatus

[Line 49](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L49), local.

- [54](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L54) writes [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) Modify

## EnqueueIncomingDoc

[Line 59](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L59).

- [64](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L64) runs [Codeunit 132 Release Incoming Document](https://jonas-paprotka.de/ref/codeunit/132-release-incoming-document/)
- [67](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L67) calls `EnqueueJobEntry`
- [68](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L68) writes [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) Modify

## EnqueueJobEntry

[Line 72](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L72), local.

- [85](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L85) runs [Codeunit 453 Job Queue - Enqueue](https://jonas-paprotka.de/ref/codeunit/453-job-queue-enqueue/)

## CancelQueueEntry

[Line 89](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L89).

- [99](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L99) writes [Table 472 Job Queue Entry](https://jonas-paprotka.de/ref/table/472-job-queue-entry/) DeleteAll(true)
- [101](https://jonas-paprotka.de/ref/codeunit/137-ocr-inc-doc-via-job-queue/source/#L101) writes [Table 130 Incoming Document](https://jonas-paprotka.de/ref/table/130-incoming-document/) Modify

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
