Skip to main content

Decide per customer: XRechnung, ZUGFeRD or PDF

The format follows one simple rule:

  • Customers outside Germany always get a regular PDF. The flow does not even look at their Document Sending Profile, so they need no profile at all.
  • German customers get a ZUGFeRD by default. Nothing has to be set up for them besides the default profile below.
  • XRechnung is the exception. Only customers who require it (typically public-sector customers with a Leitweg-ID) are assigned the XRECHNUNG profile deliberately.

We use the customer's Document Sending Profile as the marker, with exactly two profiles: XRECHNUNG and STANDARD.

Why the Document Sending Profile​

It is a standard field on every customer, it is easy to see and change in the customer list, and it needs no extension of the customer table. In this setup the profile is only a label: it tells the flow what to produce. AutoFlow does the sending, so the profile itself sends nothing.

1. Create the profiles​

  1. Search for Document Sending Profiles and choose New.

  2. Create these two profiles:

    CodeDescriptionUsed for
    STANDARDStandard by flowThe Default profile. For a German customer it means ZUGFeRD, for a customer outside Germany a regular PDF
    XRECHNUNGXRechnung by flowAssigned deliberately to customers who must receive an XRechnung (typically public-sector customers with a Leitweg-ID)
  3. Set every channel (Printer, E-Mail, Disk, Electronic Document) to No on both profiles.

The codes matter: the flow compares them exactly, including upper and lower case. See Send every posted invoice and credit memo.

2. Set the default profile to STANDARD​

A customer without a profile gets the profile marked as Default. Mark STANDARD as default, so every German customer you have not classified receives a ZUGFeRD. The flow only singles out XRECHNUNG: STANDARD, an empty profile and any other code are all treated the same way (ZUGFeRD for German customers).

3. Assign a profile only where it differs​

Open the Customer Card, go to Invoicing and set Document Sending Profile. For many customers at once, use the customer list with Edit List.

CustomerDocument Sending Profile
Customer outside Germanynone needed (always a PDF)
German customer, standard caseleave empty or STANDARD (ZUGFeRD)
Customer who requires an XRechnungXRECHNUNG

4. Check the customer data per format​

DataXRechnungZUGFeRDPDF
Address, post code, cityrequiredrequiredneeded for the letter only
Country/Region Coderequired, DE for German customersrequired, DE for German customersno
VAT registration no.required, or a Leitweg-IDrequired, or a Leitweg-IDno
E-Invoice Routing No. (= Leitweg-ID)public-sector customerspublic-sector customersno
Recipient e-mail addressyesyesyes
E-Mail on the customer cardrequired: BC tests the Sell-to E-Mail of the document, which is copied from the customer when the document is createdsameno
An empty Country/Region Code blocks the e-invoice

Business Central checks the bill-to country before it creates any e-invoice and stops with Bill-to Country/Region Code must have a value when it is empty. Many databases, including the CRONUS demo data, leave the code empty on domestic customers because an empty code counts as the home country elsewhere in Business Central. For e-invoicing that is not enough: set DE on every German customer. Use the customer list with Edit List and filter on an empty Country/Region Code to find them.

The E-Invoice Routing No. is where Business Central reads the Leitweg-ID, if you set the service up that way, see Set up e-invoicing in Business Central.

5. Where the recipient e-mail comes from​

Most users keep the sending address in the customer's Document Layouts, not in the E-Mail field of the customer. To check it, open the Customer Card and choose Related > Navigate > Document Layouts. The address is the field Send To Email, one line per document type (usage Invoice, Credit Memo).

The flow looks there first and falls back to the customer's E-Mail field. Make sure one of the two is filled for every customer. See Send every posted invoice and credit memo.

tip

Have a look at the customers that matter most and post a test invoice first. Missing data shows up as a failed step with Business Central's message, see Common errors.

Next step​

Send every posted sales invoice and credit memo in the right format