Articles in this section

How to insert specific data from a Data Source in a template

This article explains how to insert specific data originating from the tenant's data sources through smart fields so it can populate the dynamic document. 

  Prerequisites

  • Library and at least one Dynamics modules enabled.
  • Templafy Desktop and Office VSTO add-in installed on the PC.
  • Space owner access to the Templafy tenant.
  • At least one data source is set up.

  Important

Please note that the Template tab is only available in Word and PowerPoint. Inserting information into a Spreadsheet for Excel can be done through the Header Footer in the Advanced tab.

When building a smart template, use the Data smart field to insert the data from a specific data source into the smart template. To create a Data smart field, it is necessary to specify the column and the row of the data source so the correct value will be inserted. Through this smart field text, numbers, and images can be inserted. Follow these steps to create a Data smart field: 

  1. In Template Designer, navigate to the Template tab.
  2. Select the location where the smart field should be inserted.
    Word PowerPoint
    Type and select a placeholder text.
  3. Click + Add smart field.
    This step doesn't apply if you are adding the very first smart field in the template.
  4. Expand the section by clicking on More.
  5. Click on Data.
    All the data sources available on the tenant will be displayed. In this example data source Copyrights with one column Name is used: 
    Data_DataSource_ExampleCopyrights.png
  6. Select the column from the data source that should be used in the smart field.
    Word PowerPoint
    Data_SelectColumn_ExampleCopyrights.png
  7. Optionally, edit the Display name.
    The display name will be displayed in the Template tab once the smart field has been added.
  8. Select the Data source row.
    This dropdown displays the values from the data source based on the selected column.
    Word PowerPoint
    Data_SelectRow_ExampleCopyrights.png
  9. Optionally, perform additional actions on the smart fields: 
  10. Click Add to template.
    The smart field will be injected into the template and will be displayed in the Template tab: 
    Word PowerPoint
    Data_FieldAdded_ExampleCopyrights.png

  Note

  • Once the smart field has been created, it can be edited, or deleted.
  • Creating a Data smart field is similar to using the DataSources[] function.
  • Achieving complex text bindings related to the response form can be done by editing the binding of the Data smart field, or by creating a Custom text binding or Custom image binding smart field.

  Important

The Data smart field will only allow injecting simple text, numbers, or images. If a text element or a slide should be inserted, please use the Text element smart field in Word or the Slide(s) smart field in PowerPoint.

conditions custom chart binding tech_role
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.