Skip to content
Smart Templates Manual Website Manual for your AI

Your first template

In short

You get to your first template in four steps: make sure you have the security role, open Smart Templates, create a new template, and place the first objects and fields on the sheet. Then you check the result with “Full preview” and secure it with “Save”.

The way to your first template

  1. Make sure you have the security role “Smart Templates Designer” or the role “System Administrator”; without one of the two, the designer cannot load the templates. An administrator assigns the role “Smart Templates Designer” as described under Assigning a security role.
  2. In Dynamics, open the “Smart Templates” app; it shows the designer right away. How to do this is described under Opening Smart Templates.
  3. Create a new template with “New”. If there is no template at all yet, the window “Welcome to Smart Templates” appears when you open the designer; “Create first template” leads to the same window. The two steps of the window are shown in Creating a new template.
  4. Place objects and fields on the sheet, check the result and save, as described below.

Dragging an object onto the sheet

Below the template row is the ribbon with everything you can place on the sheet. Drag “Text” onto the sheet with the mouse and release: a new text is created at that height. Double-click it to open the “Edit text” window and write your text; for the first text of a template, a speech bubble reminds you: “Double-click to edit the text”.

The designer’s ribbon: the buttons “Text” and “Image” (group “Elements”), “Group” (“Containers”), “Shapes”, “Barcode”, “QR code” and “GiroCode” (“Codes”), “Data table” and “Free-form table” (“Tables”) as well as “Blank page” and “Page break” (“Page”).

You place an image, a shape, a code or a table on the sheet in the same way. A click on a button inserts the object as well; where it goes is described under The ribbon: Where a click inserts.

Moving and resizing

A click selects an object: it gets a blue frame with small handles, and its settings appear on the right in the “Properties” area. Drag the object with the mouse to another place; you change its width with the handles . More on this is described under Working on the canvas.

Excerpt of the new sheet: at the top the header with the large, bold text “Kopfzeile” above the blue line and the group with the bold blue text “Gruppe”, below it a selected text “Vielen Dank für Ihren Auftrag.” with a blue frame and one small square handle each on the left and right.

Editing with a double-click

You open texts, groups and table columns with a double-click. A separate window opens in which you can edit the content much better than on the sheet:

Double-click onWhat opens
a textThe “Edit text” window: there you write and format the text and insert fields (see The “Edit text” window).
a group, including the header or footerThe group designer: a separate window in which the group is the work area. There you place and arrange its objects as on a sheet (see Groups: Opening, going deeper, going back).
a cell of a data tableThe column designer: what you design there applies to this column in every row (see Cells, header row and page break: Designing with a double-click).

What a double-click opens on header cells, free-form tables and other objects is described under Working on the canvas: The double-click.

Inserting a field

  1. On the left in the “Data” area, expand the primary source; it carries a star. With the search box “🔍 Search fields & relationships…” you find a field faster.
  2. Drag the field onto the sheet with the mouse. On a free spot, a new text with this field is created. What happens when you release it on an existing text, in a group or in a table cell is described under Data tree and field picker: Clicking and dragging and, for an existing text, under The “Edit text” window: Dragging a field onto an existing text.

On the sheet, the field appears as a blue marker with its name; you see the value in the full preview and in the PDF.

Excerpt of the designer. On the left the “Data” area with the button “Manage data sources”, the search box “Search fields & relationships…”, the collapsed entries “Custom variables” and “System variables” and the expanded primary source “Rechnung” with a star. Below it a search box of its own and its fields “Rechnungsnummer”, “Rechnungsdatum”, “Leistungsdatum”, “Fälligkeitsdatum” and “Bezahlt”, each with a small colored marker for the type (“Abc”, “Date”, “Yes/No”). Then the expanded relationship “Firma · Kunde” with the marker “N:1”, a search box and the fields “Kundennummer”, “Name”, “Straße”, “PLZ”, “Ort” and “Land”. Next to it on the right, smaller, the invoice sheet: at the top the logo and the markers for company name and address, below it the address block made of blue markers, “Name”, “Straße”, “PLZ” and “Ort” side by side and “Land”, and to the right of it a frame with the document data. Next come the heading “Rechnung” with the marker “Rechnungsnummer”, the introduction, the line item table, the payment note with the stamp “BEZAHLT”, the totals block, the bank details and the closing greeting.
A field from the “Data” area becomes a blue marker on the sheet.
  1. 1The primary source, expanded. It carries a star.
  2. 2A field, here “Name” from the relationship “Firma · Kunde” of the primary source. You drag it onto the sheet with the mouse.
  3. 3On the sheet, it becomes a blue marker with the name of the field.

How you put fields into a text is described under The “Edit text” window: Inserting fields; how they are printed and how you change their format, under Numbers, currency and dates: How fields are printed; what the “Data” area shows, under The data tree.

Fixed words around a field, for example “Quote no.”, you write in the text itself: double-click the text and write in the “Edit text” window. The fields are on the left; a click inserts one at the cursor (see The “Edit text” window). “Apply” puts the text onto the sheet.

Tip

Fields from a list, for example the line items of a quote, belong in a data table. To do this, drag the relationship itself onto the sheet; it is named after the table it leads to and the connecting field, for example “Angebotsposition · Angebot”, and carries the badge “1:N”. The window for the rule and the column selection open, and then a table is created with one row per line item. More under Creating a data table.

Checking with full preview and PDF

At the top in the header bar are “Full preview” and “PDF”. Both generate the document for your sample record, with the real values from Dynamics and in the same way as a button or a flow later does, but from the state that is currently open. What can still differ is described under Full preview and printing in Dynamics.

  • Full preview shows the document in a window. From there you can save it with “Download PDF”.
  • PDF immediately downloads the document as a file.
The full preview above the designer: at the top a white bar with the title “Full preview” and, on the right, the buttons “Download PDF” and “Close”, below it the document as a PDF in the browser’s viewer, a whole page of an invoice with the values of the sample record.
The full preview shows the document as a real PDF.
  1. 1The document with the values of your sample record.
  2. 2“Download PDF” saves it as a file.

You do not have to save for this. If no sample record has been chosen yet, the designer asks for one.

You choose a different sample record under “Template settings”, “Data” tab, section “Sample record”. Do check several: a customer with a long name, a quote with many line items.

Saving

Click “Save” at the top right. From then on, all buttons and flows in Dynamics print with this version (see Managing templates: Saving).

The second row of the template row: on the left the buttons “AI package”, “Upload AI changes”, “AI assistant”, “Duplicate” and “Rename”, on the right “Delete” in red and the blue button “Save”.
On the right in the template row.

If anything is still unsaved, the designer asks before you open another template or leave the page.

Good to know

In the “Template settings” window, the button at the bottom is called “Apply”: it applies the settings to the template. Saving happens only with “Save” at the top right.

Further commands for the whole template are “Duplicate”, “Rename” and “Delete”. What each command does and reports in detail is described under Managing templates: Duplicating, renaming, deleting.

Tip

Do you want to try something without putting the template that is currently being printed at risk? Create a copy with “Duplicate” and work there.