Codeunit 133 Send Incoming Document to OCR

Base Application, Microsoft.EServices.EDocument

Source AL, 264 lines

src/Layers/W1/BaseApp/eServices/EDocument/SendIncomingDocumenttoOCR.Codeunit.allines 9 to 24 of 264, Copyright (c) Microsoft Corporation. MIT

codeunit 133 "Send Incoming Document to OCR"{    TableNo = "Incoming Document";    trigger OnRun()    begin        SendDocToOCR(Rec);    end;    var        OCRWhenApprovalIsCompleteErr: Label 'The document can only be sent to the OCR service when the approval process is complete.';        NoOcrAttachmentErr: Label 'There is no attachment of type PDF or Image.';        NoAttachmentMarkedForOcrErr: Label 'You must select an attachment for use for OCR.';        ShowMessages: Boolean;        CannotRemoveFromJobQueueTxt: Label 'The document cannot be removed from queue since it is already sent.';        CannotSendDocumentTxt: Label 'The document cannot be sent to the OCR service because its status is %1.', Comment = '%1 Status of the document for example: New, Released, Posted, Created, Rejected...';

All 264 lines

Events 3 in 29

[IntegrationEvent] OnAfterIncomingDocReadyForOCR(var IncomingDocument: Record "Incoming Document")17-29
[IntegrationEvent] OnAfterIncomingDocSentToOCR(var IncomingDocument: Record "Incoming Document")17-29
[IntegrationEvent] OnAfterIncomingDocReceivedFromOCR(var IncomingDocument: Record "Incoming Document")17-29

Public procedures 11 in 29

SendToJobQueue(var IncomingDocument: Record "Incoming Document")17-29
RemoveFromJobQueue(var IncomingDocument: Record "Incoming Document")17-29
SendDocToOCR(var IncomingDocument: Record "Incoming Document")17-29
ScheduleJobQueueReceive()17-29
RetrieveDocFromOCR(var IncomingDocument: Record "Incoming Document")17-29
SetStatusToReceived(var IncomingDocument: Record "Incoming Document")17-29

All 11 procedures