Codeunit 6140 "E-Doc. Import"
EDocument · Microsoft.eServices.EDocument
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 2 connected objects and pages
EDocument · Microsoft.eServices.EDocument · BC29-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Permissions | tabledata “E-Document” = imd, tabledata “E-Doc. Imported Line” = imd |
Events published
OnAfterProcessIncomingEDocument(EDocument: Record "E-Document"; EDocImportParameters: Record "E-Doc. Import Parameters"; StartState: Enum "Import E-Doc. Proc. Status"; DesiredEndState: Enum "Import E-Doc. Proc. Status")(integration)- subscribers: Codeunit 3303 “Payables Agent” CreateAgentTask, Codeunit 3316 “PA Events” RecordKnownSenderOnAgentProcessingStep, Codeunit 3316 “PA Events” TrackFinalizedEDocuments
OnAfterProcessImportedDocument(var EDocument: Record "E-Document"; var DocumentHeader: RecordRef)(integration)OnBeforePrepareReceivedDoc(var EDocument: Record "E-Document"; var TempBlob: Codeunit "Temp Blob"; SourceDocumentHeader: RecordRef; SourceDocumentLine: RecordRef; TempEDocMapping: Record "E-Doc. Mapping" temporary)(integration)OnAfterPrepareReceivedDoc(var EDocument: Record "E-Document"; var TempBlob: Codeunit "Temp Blob"; SourceDocumentHeader: RecordRef; SourceDocumentLine: RecordRef; TempEDocMapping: Record "E-Doc. Mapping" temporary)(integration)OnBeforeUpdateDocument(var EDocument: Record "E-Document"; var TempDocumentHeader: RecordRef; var TempDocumentLine: RecordRef; var DocumentHeader: RecordRef)(integration, obsolete 27.0)OnAfterUpdateDocument(var EDocument: Record "E-Document"; var TempDocumentHeader: RecordRef; var TempDocumentLine: RecordRef; var DocumentHeader: RecordRef)(integration, obsolete 27.0)OnBeforeCreateDocument(var EDocument: Record "E-Document"; var TempDocumentHeader: RecordRef; var TempDocumentLine: RecordRef; var DocumentHeader: RecordRef)(integration)OnAfterCreateDocument(var EDocument: Record "E-Document"; var TempDocumentHeader: RecordRef; var TempDocumentLine: RecordRef; var DocumentHeader: RecordRef)(integration)OnBeforeCreateJournalLine(var EDocument: Record "E-Document"; var JnlLine: RecordRef)(integration)OnAfterCreateJournalLine(var EDocument: Record "E-Document"; var JnlLine: RecordRef)(integration)OnAfterInsertImportedEdocument(var EDocument: Record "E-Document"; EDocumentService: Record "E-Document Service"; var TempBlob: Codeunit "Temp Blob"; EDocCount: Integer; HttpRequest: HttpRequestMessage; HttpResponse: HttpResponseMessage)(integration, obsolete 26.0)OnBeforeInsertImportedEdocument(var EDocument: Record "E-Document"; EDocumentService: Record "E-Document Service"; var TempBlob: Codeunit "Temp Blob"; EDocCount: Integer; HttpRequest: HttpRequestMessage; HttpResponse: HttpResponseMessage; var IsCreated: Boolean; var IsProcessed: Boolean)(integration, obsolete 26.0)
Procedures
ReceiveAndProcessAutomatically(EDocumentService: Record "E-Document Service"): BooleanProcessAutomaticallyIncomingEDocument(EDocument: Record "E-Document"): BooleanProcessIncomingEDocument(EDocument: Record "E-Document"; EDocImportParameters: Record "E-Doc. Import Parameters"): BooleanProcessIncomingEDocument(EDocument: Record "E-Document"; EDocumentService: Record "E-Document Service"; EDocImportParameters: Record "E-Doc. Import Parameters"): Boolean(internal)CreateFromType(var EDocument: Record "E-Document"; EDocumentService: Record "E-Document Service"; EDocFileFormat: Enum "E-Doc. File Format"; Filename: Text; InStr: InStream)(internal)UploadDocument(var EDocument: Record "E-Document")(internal)V1_GetBasicInfo(var EDocument: Record "E-Document")(internal)V1_ProcessEDocument(var EDocument: Record "E-Document"; CreateJnlLine: Boolean; AutoProcessDocument: Boolean)(internal)UpdatePurchaseOrderLink(var EDocument: Record "E-Document")(internal)ViewExtractedData(EDocument: Record "E-Document")V1_ProcessImportedDocument(var EDocument: Record "E-Document"; var EDocService: Record "E-Document Service"; var TempBlob: Codeunit "Temp Blob"; CreateJnlLine: Boolean; AutoProcessDocument: Boolean)(internal)V1_ProcessEDocPendingOrderMatch(var EDocument: Record "E-Document")(internal)SetHideDialogs(Hide: Boolean)(internal)V1_AfterInsertImportedEdocument(var EDocument: Record "E-Document"; var EDocumentService: Record "E-Document Service"; var TempBlob: Codeunit "Temp Blob"; EDocCount: Integer; var HttpRequest: HttpRequestMessage; var HttpResponse: HttpResponseMessage)(internal)V1_BeforeInsertImportedEdocument(var EDocument: Record "E-Document"; var EDocumentService: Record "E-Document Service"; var TempBlob: Codeunit "Temp Blob"; EDocCount: Integer; var HttpRequest: HttpRequestMessage; var HttpResponse: HttpResponseMessage; var IsCreated: Boolean; var IsProcessed: Boolean)(internal)
Plus 22 local procedures.
Recent changes
- 2026-09-29 #11484 [E-Documents Core] - Supported type direction configuration (main, BC30, feature)
- 2026-08-13 #10162 Fix stale start status in e-document import pipeline (main, BC30, fix)
- 2026-07-30 #9796 Show a message when an e-document file cannot be viewed or no data could be extracted (main, BC30, fix)
Deprecations
- procedure V1_AfterInsertImportedEdocument: guarded (#if not CLEAN26)
- procedure V1_BeforeInsertImportedEdocument: guarded (#if not CLEAN26)
- procedure OnAfterInsertImportedEdocument: Pending 26.0 (#if not CLEAN26), “This event is removed. Use new IDocumentReceiver interface instead”
- procedure OnBeforeInsertImportedEdocument: Pending 26.0 (#if not CLEAN26), “This event is removed. Use new IDocumentReceiver interface instead”
- procedure OnAfterUpdateDocument: Pending 27.0 (#if not CLEAN27), “This event is not raised.”
- procedure OnBeforeUpdateDocument: Pending 27.0 (#if not CLEAN27), “This event is not raised.”
Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).
Ask your agent
Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "E-Doc. Import"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.