Creating a new template
In short
A new template is created in two steps: first name and primary source, then page, font and number formats. Afterward the sheet holds a basic framework that you continue to design.
Click New
At the top in the template row, click “New”.
Step 1: Name and primary source
The window “New template · Step 1 of 2” opens.
- Under “Template name”, enter a name, for example “Auftragsbestätigung”.
- Under “Data source”, click “⚙ Choose data source …”. The window “Manage data sources” opens.
- Click “★ Set primary source”.
- In the window “Choose a table”, find the table you want to print for, such as “Quote” or “Order”, and click it.
The table selection: typing filters the list. - 1Typing filters the list. The search covers the display name and the name under which Dynamics keeps the table (on the right in gray).
- 2A click on a row chooses that table as the primary source.
- Right afterward, the designer asks for a “Sample record” on which you will check the template later. Click a record or “Continue without a sample record” .
Here for an invoice; for a quote the window looks exactly the same. - Back in the “Manage data sources” window, click “✓ Confirm” at the bottom right, not “Close” at the top right. The designer then reports that you should still press “Save” to store this in Dynamics. When creating a template, this does not apply: the template is created at the end with “Create template”.
- Step 1 now shows “⚙ Manage data sources — Primary source: Angebot” and “Ready”. Click “Continue to settings →”.
Step 2: Page, font and numbers
After “Continue to settings →”, the process continues in the same flow: the window “New template” opens with the settings. At the top it says “Step 2 of 2”, and next to it once more the name and the primary source. Below are the template’s basic settings in tabs:
| Tab | What you set there |
|---|---|
| “Page” | The page size, the margins, the guides of the canvas, the default for the header row of tables and the name of the file (default: the name field of the primary source, see Template settings: PDF name). |
| “Font” | The font for all texts without a font of their own. |
| “Numbers & date” | The “Template language” for date and numbers, the date formats and the currency. |
| “E-invoice” | Whether the template additionally generates an e-invoice, according to which standard and with which output (see E-invoice: ZUGFeRD and XRechnung). At the top is the AI box; the button “Open AI assistant” is gray there until the template has been created with “Create template” (see E-invoice: Assigning with AI). |
| “Data” | Keep warm, the data sources and the sample record. |
It is the same window that you later open via “Template settings”; what each setting does is described under Template settings.
To begin with, the defaults are enough; you can change everything later via “Template settings”. Click “Create template”.
With this, the template is created in Dynamics immediately and appears in the list for everyone; if you decide not to keep it after all, remove it with “Delete”.
Good to know
If you cancel, with “Cancel”, the Esc key or a click next to the window, the designer asks in the window “Discard new template?”; in step 1 only if you have already entered something. “Discard” discards name, primary source and settings, and the template that was open before is back unchanged. You cannot go back from step 2 to step 1.
What is on the sheet afterward
A new template is not a blank sheet but a basic framework of three parts:
- 1The header, 26 mm high, with the text “Kopfzeile” (16 pt, bold, dark blue) and a blue line. It repeats on every page.
- 2A group with the text “Gruppe” (13 pt, bold, blue). It appears only once, on the first page. It is at least 20 mm high and grows with what you put into it: “Automatic height (fit to content)” is switched on.
- 3The footer, 12 mm high, with a gray line, on the left the text “Fußzeile” and on the right the page number (both 7.5 pt, gray). It repeats on every page; the blue markers become the numbers in the PDF.
The texts are only examples: replace “Kopfzeile” with your logo, for example, and “Gruppe” with address and document data. You can change or delete all parts; more on this is described under Pages, header and footer.
Good to know: primary source and data sources
All the fields the designer offers you come from the primary source. You do not need further sources to begin with. Everything about the primary source, further sources and the sample record is described under Data sources and relationships.
Good to know
The primary source cannot be swapped for a different table later; if you made a mistake, cancel the draft and start over with “New” (see Data sources and relationships: Setting the primary source).
How to continue is shown in Your first template: Dragging an object onto the sheet.