---
id: change/bcapps/9682
type: change
title: "#9682 [E-Document Formats][OIOUBL] Migrate NAV PR 247162 into BCApps"
summary: New OIOUBL e-document format reader for Denmark that parses OIOUBL XML invoices and credit notes into purchase staging tables, enabling structured e-document import using vendor VAT registration, GLN, or PEPPOL identifiers.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit e-document oioubl handler
  - enumextension oioubl edoc read into draft
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:17.041Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 79700e73d8b97e72038ee8f8b70ea133acc7c5db
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/9682
    title: "microsoft/BCApps#9682: [E-Document Formats][OIOUBL] Migrate NAV PR 247162 into BCApps"
    date: "2026-07-27"
    commit: 79700e73d8b97e72038ee8f8b70ea133acc7c5db
    t: null
    quote: Migrates internal NAV PR 247162 (OIOUBL structured E-Document reader) into BCApps
links:
  learn: []
  objects:
    - object/codeunit/13913-dk
    - object/enumextension/13911-dk
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 9682
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/9682
kind: pr
base_branch: main
major: "30"
merged_at: "2026-07-27T08:36:30Z"
author: Groenbech96
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "Team: Integrations"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 9
  additions: 1291
  deletions: 0
  al: 2
apps:
  - EDocumentFormatOIOUBL
objects_touched:
  - key: codeunit/13913
    page: codeunit/13913-dk
    type: codeunit
    id: 13913
    name: E-Document OIOUBL Handler
    app: EDocumentFormatOIOUBL
    status: added
  - key: enumextension/13911
    page: enumextension/13911-dk
    type: enumextension
    id: 13911
    name: OIOUBL EDoc Read into Draft
    app: EDocumentFormatOIOUBL
    status: added
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 580191
systems:
  - integration
quote: Migrates internal NAV PR 247162 (OIOUBL structured E-Document reader) into BCApps
joined_against:
  major: "30"
  commit: a4406cfa9e57437fedc49c53c327a199a854491e
---

# #9682 [E-Document Formats][OIOUBL] Migrate NAV PR 247162 into BCApps

> New OIOUBL e-document format reader for Denmark that parses OIOUBL XML invoices and credit notes into purchase staging tables, enabling structured e-document import using vendor VAT registration, GLN, or PEPPOL identifiers.

[Pull request](https://github.com/microsoft/BCApps/pull/9682) · merged into `main` (BC30) on 2026-07-27 by Groenbech96 · 9 files (+1291 -0), 2 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- New E-Document OIOUBL Handler codeunit implements IStructuredFormatReader.ReadIntoDraft for OIOUBL Invoice and CreditNote XML
- Vendor lookup by VAT registration number, GLN, or PEPPOL participant ID
- Enum extension registers the handler on E-Doc. Read into Draft
- Uses the public E-Document PEPPOL Utility instead of NAV's EDocument XML Helper
- New OIOUBL test app with structured tests; E-Document Core grants it internalsVisibleTo
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 13913 "E-Document OIOUBL Handler"](../../objects/codeunit/13913-dk.md), EDocumentFormatOIOUBL (DK layer): added
- [Enum extension 13911 "OIOUBL EDoc Read into Draft"](../../objects/enumextension/13911-dk.md), EDocumentFormatOIOUBL (DK layer): added

## Context

- Work items: AB#580191
- Labels: AL: Apps (W1), Team: Integrations
- Systems: integration
- From the description: "Migrates internal NAV PR 247162 (OIOUBL structured E-Document reader) into BCApps"

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
