---
id: object/codeunit/6148
type: object
title: Codeunit 6148 "E-Document Helper"
summary: Codeunit 6148 "E-Document Helper" in EDocument (Microsoft.eServices.EDocument). 10 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - edocument
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 2954f4c209c2d27632c7e10c8293be2f0dc906b17262a022f74927c84a98795b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Helpers/EDocumentHelper.Codeunit.al
    title: src/Apps/W1/EDocument/app/src/Helpers/EDocumentHelper.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/9145
object_type: codeunit
object_id: 6148
name: E-Document Helper
namespace: Microsoft.eServices.EDocument
app: EDocument
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 11
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Codeunit 6148 "E-Document Helper"

> Codeunit 6148 "E-Document Helper" in EDocument (Microsoft.eServices.EDocument). 10 public procedures. Introduced in BC29, still in BC30.

EDocument · Microsoft.eServices.EDocument · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/EDocument/app/src/Helpers/EDocumentHelper.Codeunit.al) · facts from BC29

## Procedures

- `GetEDocumentBlob(EDocument: Record "E-Document"; EDocumentService: Record "E-Document Service"; var TempBlob: Codeunit "Temp Blob")`
- `GetInboundPdfPreviewEntryNo(SourceRecordId: RecordId): Integer`: Returns the inbound PDF preview (unstructured E-Doc. Data Storage entry) for a posted purchase document that originated from an E-Document, matching by the document's RecordId. Returns 0 when the document has no linked PDF preview.
- `GetInboundPdfPreviewEntryNo(SourceRecordId: RecordId; EDocumentLink: Guid): Integer`: Returns the inbound PDF preview (unstructured E-Doc. Data Storage entry) for a purchase document that originated from an E-Document. The E-Document is located by its SystemId (open documents that carry an "E-Document Link") or, as a fallback, by the document's RecordId (posted documents). Returns 0 ...
- `IsElectronicDocument(var RecRef: RecordRef): Boolean`: Use it to check if the source document is an E-Document.
- `IsElectronicDocument(var RecRef: RecordRef; var DocumentSendingProfile: Record "Document Sending Profile"): Boolean`
- `GetServicesInWorkflow(Workflow: Record Workflow; var EDocumentService: Record "E-Document Service"): Boolean`: Returns the EDocuments services used in a workflow. E-Document service record has code filter set.
- `AllowEDocumentCoreHttpCalls()`: Use it to set allow EDocument CoreHttpCalls.
- `GetEdocumentService(Edocument: Record "E-Document"; var EdocumentService: Record "E-Document Service")`: Use it to get E-Document Service for an Edocument.
- `EnsureInboundEDocumentHasService(var EDocument: Record "E-Document"): Boolean` (internal)
- `OpenDraftPage(var EDocument: Record "E-Document")`

Plus 1 local procedures.

## Recent changes

- 2026-07-09 [#9145 [E-Document] Show PDF preview factbox on purchase invoice pages](../../changes/bcapps/9145.md) (main, BC30, feature)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

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-Document Helper")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
