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

1095 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  1 No
Related Articles
  • What are the safest and fastest ways to automate document creation in Dynamics 365?
  • Why do document errors and inconsistencies increase as teams scale in Dynamics 365?
  • “Recipients not found” warning when using One-Click-Action
  • What makes a Dynamics 365 add-on easy for partners to recommend in every deal 
  • Enhancing data security for DCP and AE using a virtual network
  • Security issues when installing DocumentsCorePack (Defender)
Latest Articles
  • What are the safest and fastest ways to automate document creation in Dynamics 365?
  • Recap: Canadian Power Platform Summit 2026
  • What makes a partner tool defensible during budget pushback?
  • What are safe ways to reduce Dynamics 365 storage without deleting records? 
  • Why do document errors and inconsistencies increase as teams scale in Dynamics 365?
Popular Articles
  • DocumentsCorePack Template Designer – Getting Started
  • Step-by-Step: How to configure a One-Click-Action
  • Application Access for Dynamics 365
  • How licenses are counted
  • How to find your environment’s unique name in Microsoft Dynamics 365
Top Rated Articles
  • “Undefined”-labels in Chrome and Edge 114 and higher
  • How to insert Condition Fields in DocumentsCorePack Templates designer
  • Important information for Dynamics 365 online customers using DocumentsCorePack and/or AttachmentExtractor
  • How to activate the DocumentsCorePack Connector for PowerApps & Microsoft Flow
  • How licenses are counted
Categories
  • *News and General Infos* 73
  • Webinars 47
  • Template Designer(DCP 197
  • DocumentsCorePack(DCP 269
  • TelephoneIntegration (TI 65
  • AttachmentExtractor (AE 79
  • 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
  • Cookies
  • © 2025 www.mscrm-addons.com. All Rights Reserved.