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
- 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.
- In Dynamics, open the “Smart Templates” app; it shows the designer right away. How to do this is described under Opening Smart Templates.
- 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.
- 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”.
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.
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 on | What opens |
|---|---|
| a text | The “Edit text” window: there you write and format the text and insert fields (see The “Edit text” window). |
| a group, including the header or footer | The 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 table | The 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
- 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.
- 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.
- 1The primary source, expanded. It carries a star.
- 2A field, here “Name” from the relationship “Firma · Kunde” of the primary source. You drag it onto the sheet with the mouse.
- 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.
- 1The document with the values of your sample record.
- 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).
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.