mscrm-addons.com logomscrm-addons.com logo
  • Release History
  • Knowledge Base
  • Documentation
  • Contact Support
  • Release History
  • Knowledge Base
  • Documentation
  • Contact Support
home/Knowledge Base/DocumentsCorePack(DCP)/Generate XRechnung-Compliant Documents via DocumentsCorePack

Generate XRechnung-Compliant Documents via DocumentsCorePack

835 views 1 Updated on March 13, 2025

XRechnung is an XML-based data model for e-invoices in Germany that follows the EU standard EN16931.  It is a format used in public procurement and designed to be read and processed by different software systems.  Invoices designed to comply with XRechnung standards are created exclusively with XML, containing no PDF, Excel, or Word components.

DocumentsCorePack can generate XRechnung-compliant XML documents through the use of the DocumentsCorePack Dialog.  By providing an XML template, the Dialog can generate compliant e-invoices on-demand.

How to generate XRechnung-compliant documents via DocumentsCorePack

To generate an XRechnung-compliant document, we will first need to create a template that adheres to the format’s standards.  The template must consist of XML structured to conform to XRechnung standards, with DocumentsCorePack fields inserted as data placeholders.  You can find an example of this in this article.

After saving your template to your Dataverse environment, select it within the DocumentsCorePack Dialog and proceed.  Then, under file type, select XML to generate the document as an XML file.

Selecting XML from the file type dropdown
Figure 1: Selecting XML from the file type dropdown

Proceed to create the document. The document will generate successfully if the XML is valid. Otherwise, an error will occur and the process will stop, preventing the invalid file from being created or sent.

Note: DocumentsCorePack will check if the XML is valid. It will not verify the file against a specific schema (e.g a particular E-Invoicing format).

Error message indicating the XML is invalid
Figure 2: Error message indicating the XML is invalid

After the document has generated, you can download it by clicking on the filename.

Clicking on the filename to download the file
Figure 3: Clicking on the filename to download the file

The opened file will display the generated XML, with the field placeholders replaced with the data from your Dataverse environment.

An example XML file generated by DocumentsCorePack
Figure 4: An example XML file generated by DocumentsCorePack

Automating the process

Additionally, to simplify and automate the process of generating XML files, we recommend using One-Click-Actions or the DocumentsCorePack Connector.  Both features can handle batch document generation and minimize user errors.

Try it yourself!

For your convenience, we have included an example template under Attached Files beneath this article (“InvoiceTemplate-xml-UBL_2.1.docx”). You can use this template for testing purposes.

That’s it! We appreciate your feedback! Please share your thoughts by sending an email to support@mscrm-addons.com.

Tags:xmleinvoicexrechnungX-Rechnunge-invoice
Attached Files
#
File Type
File Size
Download
1 .docx 31.56 KB InvoiceTemplate-xml-UBL_2.1

Was this helpful?

1 Yes  No
Related Articles
  • Debugging the Template Design Office Add-In 
  • Updating Legacy SharePoint Connections 
  • Deploying DocumentsCorePack: Setup, Automation, and Real Business Impact in Dynamics365
  • Introducing the DocumentsCorePack Template Designer Office Add-In
  • 3 Ways DocumentsCorePack Transforms Proposal, Quote, and Contract Creation
  • DeepSign for DocumentsCorePack 
Latest Articles
  • The Hidden Cost of CRM Storage — And How to Eliminate It 
  • Recap: Nordic Summit 2025
  • The new Template Designer Office Add-In
  • Debugging the Template Design Office Add-In 
  • Updating Legacy SharePoint Connections 
Popular Articles
  • DocumentsCorePack Template Designer – Getting Started
  • Step-by-Step: How to configure a One-Click-Action
  • Application Access for Dynamics 365
  • How to find your environment’s unique name in Microsoft Dynamics 365
  • How licenses are counted
Top Rated Articles
  • “Undefined”-labels in Chrome and Edge 114 and higher
  • Important information for Dynamics 365 online customers using DocumentsCorePack and/or AttachmentExtractor
  • How to activate the DocumentsCorePack Connector for PowerApps & Microsoft Flow
  • How to insert Condition Fields in DocumentsCorePack Templates designer
  • How licenses are counted
Categories
  • *News and General Infos* 65
  • Webinars 46
  • Template Designer(DCP 197
  • DocumentsCorePack(DCP 260
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 76
  • PowerSearch (PS 50
  • ActivityTools (AT 61
  • SmartBar (SB 54
  • GroupCalendar (GC 47
Our Vision

“We see it as our purpose to provide products that simplify and speed up our customers’ Microsoft Dynamics 365 experience.”

Knowledgebase
LogIn
mscrm-addons.com
  • Products
  • Online Shop
  • Downloads
  • My Account
About Us
  • About Us
  • Case Studies
  • Newsletter
  • Partner Program
  • Contact
Support
  • Support
  • Terms & Conditions
  • Documentation
  • Webinars
  • Legal Documents
  • Impressum
  • © 2025 www.mscrm-addons.com. All Rights Reserved.