code change · featureIntegration & APIsofficial - Microsoftreviewed - checked by Opus

#13208 [E-Documents] XRechnung: Events to override buyer, delivery and order reference values

New integration events allow partners to override buyer, delivery, and order reference values in XRechnung export before XML elements are created, eliminating the need to patch finished XML documents.

Pull request · merged into main (BC30) on 2026-12-04 by DanielGoehler (community contribution) · 3 files (+520 -28), 1 AL · feature · tier official · reviewed (checked by Opus)

What changed

  • Adds five kinds of integration event, each for sales invoices and sales credit memos, to codeunit 13916 Export XRechnung Document
  • Buyer, delivery and order reference values are passed by var before the elements are created
  • Other events pass the delivery element or root element so subscribers can add elements such as DeliveryParty or DespatchDocumentReference
  • Service documents reach the events through the converted sales header; without subscribers the exported XML is unchanged
  • Four new tests cover overridden values and added elements

AL objects touched

Context

No source states these links: they share an object, a model read them, or a person found the same subject.

  • Electronic invoicing in Germany — possibly related: XRechnung format export events for overriding buyer, delivery, and order reference values (model-linked)

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).