Create document templates

Document templates are Microsoft Word, Microsoft PowerPoint, and Microsoft Excel documents that include placeholder tags from your workflow. Placeholder tags allow the workflow to insert variable values and images exactly where you want them in the generated document. Before you run the workflow containing your Generate document action, you need to copy the tags from the Nintex Document Tagger and paste them into your document templates where you want the variable values or images to appear.

Get tags for document templates

Nintex Document Tagger allows you to copy the variable tags you need for adding placeholders to your templates to your clipboard.

  1. Add the Generate document action to the workflow and open the action configuration panel. For more information, see Add an action to the workflow.

  2. Click Open Nintex Document Tagger.

    Nintex Document Tagger opens in a separate browser window and shows all tags for the workflow you are editing.

  3. To copy a tag:
    1. Select Word, PowerPoint, or Excel.
    2. Click a workflow reference data type (such as Start event variables) to show related tags.
    3. Click a variable tag (such as Name) to copy it to your clipboard.
    4. If a tag is for a Date variable, select the date format that you want the value to be printed in.

      Tag for Date variable

      After you copy a tag, paste it into a document template where you want the variable value to appear. See Add variable tags to document templates and Add image tags to document templates.

Nintex Document Tagger fields by section

Section Field (or column) Description

Show tags for

 

Word

Displays tags that are formatted for Microsoft Word. Example tag: <<Variable_address>>

PowerPoint Displays tags that are formatted for Microsoft PowerPoint. Example tag: <<Variable_address>>

Excel

Displays tags that are formatted for Microsoft Excel. Example tag: Variable_address

Workflow reference Data

 

 

 

Workflow variables Lists tags for user-defined variables Variable to store data for referencing in other actions within the workflow. For example, you can store URLs or other reusable values (use the action Create a text string to concatenate variables and text). Variables are available in several data types, such as number, string, and text..
Start event variables

Lists tags for start event variables A variable associated with the start event. Often referenced by actions in the workflow. For example, a start event variable might capture input in a form field..

Workflow instance variables

Lists tags for Workflow instance variables Variable available by default for inserting contextual information about the workflow, such as the workflow name or current date, into action configuration fields..

Images

Lists image tags.

Workflow repeating Data Row Displays tags for collections A variable containing multiple items, such as email addresses. Collection variables are useful for storing and operating on query results. For example, you can set up collection variables for names, email addresses, and index values to store results from querying a list. You can then loop through items in a particular collection variable (names, emails, or index values). that are formatted for rows of a table. One row corresponds to one collection.
Table Displays tags for collections A variable containing multiple items, such as email addresses. Collection variables are useful for storing and operating on query results. For example, you can set up collection variables for names, email addresses, and index values to store results from querying a list. You can then loop through items in a particular collection variable (names, emails, or index values). that are formatted for tables. One table corresponds to one collection.
Section Displays tags for collections A variable containing multiple items, such as email addresses. Collection variables are useful for storing and operating on query results. For example, you can set up collection variables for names, email addresses, and index values to store results from querying a list. You can then loop through items in a particular collection variable (names, emails, or index values). that are formatted for sections. One section corresponds to one collection.

Add variable tags to document templates

When the workflow runs, the Generate document action identifies the tags in the document templates and inserts the corresponding values from your workflow into the documents it generates.

Add image tags to document templates

When the workflow runs, the Generate document action identifies the image tags in the document templates and inserts the corresponding images from your workflow into the documents it generates.

You can render your image in the generated document using the

  • Current dimensions of the image.
  • Custom dimensions of a placeholder image.

To add image tags to document templates

  1. Open the Microsoft Word or Microsoft PowerPoint file.

    Note: To add image tags to Microsoft Excel files, see To add resized image tags to document templates.

  2. Select the area in the document template where you want the image to appear.
  3. Paste the image tag you copied from the Nintex Document Tagger .
  4. Save the Word document or PowerPoint file.
  5. When the document is generated, the image will be inserted in the document at the same size as the original image.

To add resized image tags to document templates

To add an image to a generated document at a different size to the original image, you need to add a placeholder image of the size you want to the document template, and then label that placeholder image with an image tag. When your workflow runs, the Generate document action replaces the placeholder image in the document template with the image from the tag, but resizes it to the dimensions of the placeholder image.

  1. Open the Microsoft Word, Microsoft PowerPoint, or Microsoft Excel document.
  2. Insert a placeholder image of the size you want into the document template. For instructions on inserting images, see the Insert pictures Microsoft article.
  3. Click the placeholder image in the document template.
  4. Click the Format tab in the ribbon of the document template.
  5. Click Selection Pane.
  6. Copy the image tag from Nintex Document Tagger that you want to add to the document template. See Get tags for document templates.
  7. Paste the copied image tag into the image label field.
  8. Save the Word document, PowerPoint file, or Excel document.

See Add images for document generation.