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
XRECHNUNGprofile 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
-
Search for Document Sending Profiles and choose New.
-
Create these two profiles:
Code Description Used for STANDARDStandard by flow The Default profile. For a German customer it means ZUGFeRD, for a customer outside Germany a regular PDF XRECHNUNGXRechnung by flow Assigned deliberately to customers who must receive an XRechnung (typically public-sector customers with a Leitweg-ID) -
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.
| Customer | Document Sending Profile |
|---|---|
| Customer outside Germany | none needed (always a PDF) |
| German customer, standard case | leave empty or STANDARD (ZUGFeRD) |
| Customer who requires an XRechnung | XRECHNUNG |
4. Check the customer data per format
| Data | XRechnung | ZUGFeRD | |
|---|---|---|---|
| Address, post code, city | required | required | needed for the letter only |
| Country/Region Code | required, DE for German customers | required, DE for German customers | no |
| VAT registration no. | required, or a Leitweg-ID | required, or a Leitweg-ID | no |
| E-Invoice Routing No. (= Leitweg-ID) | public-sector customers | public-sector customers | no |
| Recipient e-mail address | yes | yes | yes |
| E-Mail on the customer card | required: BC tests the Sell-to E-Mail of the document, which is copied from the customer when the document is created | same | no |
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.
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