Codeunit 1294 OCR Service Mgt.

Base Application, Microsoft.EServices.EDocument

src/Layers/W1/BaseApp/eServices/EDocument/OCRServiceMgt.Codeunit.al49 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT

CheckCredentials line 98

  1. 102callsHasCredentials
  2. 103callsGetCredentialsQstText
  3. 105runsPage 1270 OCR Service Setup
  4. 108callsHasCredentials
  5. 109callsGetCredentialsErrText

HasCredentials line 112, local

  1. 116callsTable 1270 OCR Service Setup HasPassword
  2. 117callsTable 1270 OCR Service Setup HasPassword

GetCredentialsQstText line 126

  1. 130callsGetCredentialsErrText

Authenticate line 134

  1. 138callsTryAuthenticate
  2. 145callsLogActivityFailed
  3. 150callsLogActivitySucceeded

TryAuthenticate line 156, local

  1. 166callsGetOcrServiceSetup
  2. 167callsCodeunit 1297 Http Web Request Mgt. Initialize
  3. 168callsCodeunit 1297 Http Web Request Mgt. DisableUI
  4. 169callsRsoAddHeaders
  5. 170callsCodeunit 1297 Http Web Request Mgt. SetMethod
  6. 171callsCodeunit 1297 Http Web Request Mgt. AddBodyAsText
  7. 175callsTable 1270 OCR Service Setup GetPasswordAsSecretText
  8. 176callsCodeunit 4100 Temp Blob CreateInStream
  9. 177callsCodeunit 1297 Http Web Request Mgt. GetResponse
  10. 186callsCodeunit 1297 Http Web Request Mgt. GetCookie

UpdateOrganizationInfo line 190

  1. 197callsRsoGetRequest
  2. 201callsCodeunit 6224 XML DOM Management LoadXMLNodeFromInStream
  3. 202callsCodeunit 6224 XML DOM Management FindNode
  4. 204callsCodeunit 6224 XML DOM Management FindNode
  5. 206callsCodeunit 6224 XML DOM Management FindNode
  6. 208callsRsoGetRequest
  7. 210callsCodeunit 6224 XML DOM Management LoadXMLNodeFromInStream
  8. 212callsCodeunit 6224 XML DOM Management FindNode
  9. 214writesTable 1270 OCR Service Setup Modify

UpdateOcrDocumentTemplates line 218

  1. 227callsGetOcrServiceSetup
  2. 230callsRsoGetRequest
  3. 232callsCodeunit 6224 XML DOM Management LoadXMLNodeFromInStream
  4. 235writesTable 1271 OCR Service Document Template DeleteAll
  5. 242writesTable 1271 OCR Service Document Template Insert

RsoGetRequest line 247

  1. 249callsRsoRequest

RsoGetRequestBinary line 254

  1. 260callsGetOcrServiceSetup
  2. 262callsCodeunit 1297 Http Web Request Mgt. Initialize
  3. 263callsCodeunit 1297 Http Web Request Mgt. DisableUI
  4. 264callsRsoAddCookie
  5. 265callsRsoAddHeaders
  6. 266callsCodeunit 1297 Http Web Request Mgt. SetMethod
  7. 267callsCodeunit 1297 Http Web Request Mgt. CreateInstream
  8. 268callsCodeunit 1297 Http Web Request Mgt. GetResponse

RsoPutRequest line 273

  1. 275callsRsoRequest

RsoPostRequest line 279

  1. 281callsRsoRequest

RsoDeleteRequest line 285

  1. 287callsRsoRequest

RsoRequest line 291

  1. 297callsGetOcrServiceSetup
  2. 299callsCodeunit 1297 Http Web Request Mgt. Initialize
  3. 300callsCodeunit 1297 Http Web Request Mgt. DisableUI
  4. 301callsRsoAddCookie
  5. 302callsRsoAddHeaders
  6. 303callsCodeunit 1297 Http Web Request Mgt. SetMethod
  7. 305callsCodeunit 1297 Http Web Request Mgt. AddBodyAsText
  8. 306callsCodeunit 1297 Http Web Request Mgt. CreateInstream
  9. 307callsCodeunit 1297 Http Web Request Mgt. GetResponse

RsoRequest line 311

  1. 319callsGetOcrServiceSetup
  2. 322callsCodeunit 1297 Http Web Request Mgt. Initialize
  3. 323callsCodeunit 1297 Http Web Request Mgt. DisableUI
  4. 324callsRsoAddCookie
  5. 325callsRsoAddHeaders
  6. 326callsCodeunit 1297 Http Web Request Mgt. SetMethod
  7. 328callsCodeunit 1297 Http Web Request Mgt. AddBodyAsText
  8. 330callsCodeunit 1297 Http Web Request Mgt. SendRequestAndReadTextResponse

RsoAddHeaders line 339, local

  1. 341callsCodeunit 1297 Http Web Request Mgt. AddHeader
  2. 342callsCodeunit 1297 Http Web Request Mgt. AddHeader
  3. 342callsTable 1270 OCR Service Setup GetPasswordAsSecretText
  4. 343callsCodeunit 1297 Http Web Request Mgt. AddHeader
  5. 344callsCodeunit 1297 Http Web Request Mgt. AddHeader

RsoAddCookie line 347, local

  1. 350callsAuthenticate
  2. 353callsAuthenticate
  3. 356callsCodeunit 1297 Http Web Request Mgt. SetCookie

GetOcrServiceSetup line 386, local

  1. 388callsGetOcrServiceSetupExtended

GetOcrServiceSetupExtended line 391

  1. 397callsTable 1270 OCR Service Setup CheckEnabled

StartUpload line 403

  1. 414callsRsoGetRequest
  2. 416callsLogActivityFailed
  3. 422callsLogActivityFailed
  4. 427callsLogActivitySucceeded

UploadImage line 432

  1. 437callsGetOcrServiceSetup
  2. 440callsURLEncode
  3. 442callsUploadFile

UploadLearningDocument line 451

  1. 456callsGetOcrServiceSetup
  2. 459callsUploadFile

UploadFile line 467, local

  1. 476callsCodeunit 4100 Temp Blob HasValue
  2. 478callsLogActivityFailedNoError
  3. 479callsLogActivityFailed
  4. 482callsGetOcrServiceSetup
  5. 484callsCodeunit 1297 Http Web Request Mgt. Initialize
  6. 485callsCodeunit 1297 Http Web Request Mgt. SetTraceLogEnabled
  7. 486callsCodeunit 1297 Http Web Request Mgt. DisableUI
  8. 487callsRsoAddCookie
  9. 488callsRsoAddHeaders
  10. 490callsCodeunit 1297 Http Web Request Mgt. SetReturnType
  11. 492callsCodeunit 1297 Http Web Request Mgt. SetContentType
  12. 493callsCodeunit 1297 Http Web Request Mgt. SetMethod
  13. 494callsCodeunit 1297 Http Web Request Mgt. AddBodyBlob
  14. 495callsCodeunit 1297 Http Web Request Mgt. CreateInstream
  15. 497callsCodeunit 1297 Http Web Request Mgt. GetResponse
  16. 498callsCodeunit 1297 Http Web Request Mgt. ProcessFaultXMLResponse
  17. 500callsLogActivityFailedNoError
  18. 501callsLogActivityFailed
  19. 509callsLogActivitySucceeded
  20. 510callsLogActivitySucceeded
  21. 511callsCodeunit 1630 Office Management IsAvailable
  22. 517callsLogActivityFailedNoError
  23. 518callsLogActivityFailed

UploadAttachment line 522

  1. 524callsCodeunit 4100 Temp Blob HasValue
  2. 529callsStartUpload
  3. 532callsUploadImage

UploadCorrectedOCRFile line 536

  1. 546callsGetOCRServiceDocumentReference
  2. 547callsCorrectOCRFile
  3. 548callsCodeunit 4100 Temp Blob HasValue
  4. 551callsStartUpload
  5. 554callsUploadLearningDocument

CorrectOCRFile line 557

  1. 562callsValidateUpdatedOCRFields
  2. 564callsGetOriginalOCRXMLRootNode
  3. 566callsCorrectOCRFileNode
  4. 567callsCorrectOCRFileNode
  5. 568callsCorrectOCRFileNode
  6. 569callsCorrectOCRFileNode
  7. 570callsCorrectOCRFileNode
  8. 571callsCorrectOCRFileNode
  9. 572callsCorrectOCRFileNode
  10. 573callsCorrectOCRFileNode
  11. 574callsCorrectOCRFileNode
  12. 575callsCorrectOCRFileNode
  13. 576callsCorrectOCRFileNode
  14. 577callsCorrectOCRFileNode
  15. 578callsCorrectOCRFileNode
  16. 579callsCorrectOCRFileNode
  17. 580raisesOnCorrectOCRFileOnAfterCorrectOCRFileNodes
  18. 582callsCodeunit 4100 Temp Blob CreateOutStream

CorrectOCRFileNode line 587

  1. 603callsTable 130 Incoming Document GetDataExchangePath
  2. 606callsCodeunit 6224 XML DOM Management FindNode
  3. 612callsDateConvertXML2YYYYMMDD
  4. 629callsCodeunit 6224 XML DOM Management FindNode

GetOriginalOCRXMLRootNode line 647

  1. 656raisesOnBeforeGetOriginalOCRXMLRootNodeIsHandled
  2. 667callsCodeunit 4100 Temp Blob FromRecord
  3. 668callsCodeunit 4100 Temp Blob CreateInStream
  4. 669callsCodeunit 6224 XML DOM Management LoadXMLNodeFromInStream

GetDocumentList line 684

  1. 686callsRsoGetRequest

GetDocuments line 694

  1. 707callsGetOcrServiceSetup
  2. 709callsRsoGetRequest
  3. 712callsCodeunit 6224 XML DOM Management LoadXMLNodeFromInStream
  4. 722callsCodeunit 3960 Regex IsMatch
  5. 724callsLogActivityFailed
  6. 727callsDownloadDocument
  7. 729callsGetMaxDocDownloadCount
  8. 731callsLogActivitySucceeded
  9. 739callsLogActivitySucceeded
  10. 745callsGetDocumentStatus
  11. 747callsGetDocumentsExcludeProcessed

GetDocumentsExcludeProcessed line 753

  1. 759callsGetOcrServiceSetup
  2. 770writesTable 133 Incoming Document Attachment Insert
  3. 773callsGetBatches

GetDocumentStatus line 777

  1. 783callsGetOcrServiceSetup
  2. 796writesTable 133 Incoming Document Attachment Insert
  3. 798callsGetBatches

GetDocumentForAttachment line 802

  1. 812callsGetDocuments

GetBatchDocuments line 835, local

  1. 848callsRsoGetRequest
  2. 852callsCodeunit 6224 XML DOM Management LoadXMLNodeFromInStream

GetBatchesApi line 856, local

  1. 875callsRsoGetRequest
  2. 880callsCodeunit 6224 XML DOM Management LoadXMLNodeFromInStream

GetBatches line 884, local

  1. 894callsGetBatchesApi
  2. 897callsCodeunit 6224 XML DOM Management FindNodeText
  3. 902callsCodeunit 6224 XML DOM Management FindNode
  4. 903callsFindDocumentFromList
  5. 911callsCodeunit 133 Send Incoming Document to OCR SetStatusToFailed

GetDocumentId line 918

  1. 925callsGetOcrServiceSetup
  2. 927callsGetBatchesApi
  3. 930callsCodeunit 6224 XML DOM Management FindNodeText
  4. 932callsGetBatchDocuments
  5. 935callsCodeunit 6224 XML DOM Management FindNodeText

DownloadDocument line 940, local

  1. 958raisesOnBeforeDownloadDocumentIsHandled
  2. 962callsRsoGetRequest
  3. 964callsLogActivityFailedNoError
  4. 967callsCodeunit 6224 XML DOM Management LoadXMLNodeFromInStream
  5. 969callsLogActivityFailedNoError
  6. 972callsCodeunit 8703 Feature Telemetry LogUptake
  7. 973callsCodeunit 8703 Feature Telemetry LogUsage
  8. 975callsCodeunit 6224 XML DOM Management FindNodeText
  9. 985callsCodeunit 6224 XML DOM Management FindNodeText
  10. 987callsTable 130 Incoming Document CreateIncomingDocument
  11. 989callsRsoGetRequestBinary
  12. 991callsLogActivityFailedNoError
  13. 995callsTable 130 Incoming Document AddAttachmentFromStream
  14. 996callsGetExtensionFromContentType
  15. 998callsTable 130 Incoming Document CheckNotCreated
  16. 1000callsTable 130 Incoming Document AddAttachmentFromStream
  17. 1003validatesTable 133 Incoming Document Attachment Default
  18. 1004writesTable 133 Incoming Document Attachment Modify
  19. 1007callsCodeunit 133 Send Incoming Document to OCR SetStatusToReceived
  20. 1009callsUpdateIncomingDocWithOCRData
  21. 1011callsLogActivitySucceeded
  22. 1012callsLogActivitySucceeded
  23. 1014callsRsoPutRequest
  24. 1019callsLogActivityFailedNoError
  25. 1020callsLogActivityFailedNoError
  26. 1025callsLogActivitySucceeded
  27. 1026callsLogActivitySucceeded

UpdateIncomingDocWithOCRData line 1032

  1. 1050callsTable 133 Incoming Document Attachment ExtractHeaderFields
  2. 1053callsCodeunit 6224 XML DOM Management FindNodeText
  3. 1058callsCodeunit 6224 XML DOM Management FindNodeText
  4. 1071validatesTable 130 Incoming Document Vendor Id
  5. 1073validatesTable 130 Incoming Document Vendor No.
  6. 1076writesTable 130 Incoming Document Modify

LogActivitySucceeded line 1079

  1. 1083callsTable 710 Activity Log LogActivity

LogActivityFailedNoError line 1092, local

  1. 1094callsLogActivityFailed

LogActivityFailed line 1097, local

  1. 1104callsTable 710 Activity Log LogActivity

HandleOCRRegisterServiceConnection line 1117

  1. 1124writesTable 1270 OCR Service Setup Insert(true)
  2. 1132callsTable 1400 Service Connection InsertServiceConnection

FindDocumentFromList line 1199, local

  1. 1213callsCodeunit 6224 XML DOM Management FindNodeText
  2. 1217callsCodeunit 6224 XML DOM Management FindNodeText
  3. 1218callsGetDocumentSimplifiedStatus
  4. 1222callsCodeunit 133 Send Incoming Document to OCR SetStatusToFailed
  5. 1224callsCodeunit 133 Send Incoming Document to OCR SetStatusToVerify
  6. 1227writesTable 133 Incoming Document Attachment Delete

TestConnection line 1237

  1. 1239callsSetupConnection

SetupConnection line 1244

  1. 1246callsHasCredentials
  2. 1247callsGetCredentialsErrText
  3. 1248callsAuthenticate
  4. 1250callsUpdateOrganizationInfo
  5. 1251callsUpdateOcrDocumentTemplates

OnCloseIncomingDocumentHandler line 1256, local

  1. 1258runsPage 189 Incoming Document

OnCloseIncomingDocumentsHandler line 1262, local

  1. 1264runsPage 190 Incoming Documents

GetExtensionFromContentType line 1300, local

  1. 1306callsCodeunit 419 File Management GetExtension