Add and configure the Generate document action
Note: Rich text is supported when values are retrieved from a submitted form or SharePoint rich text columns. However, some formats are not supported. If an unsupported format type is used, it will be ignored in the generated document. For more information about rich text support and which formats are supported, see the Rich text support for Nintex DocGen help topic.
Jump to:
Add the Generate document action to a workflow (single template)
- Add an action that can retrieve the template you created, such as Google Drive - Get a file.
- Configure the action and specify the output.
-
Add the Generate document action to the workflow and open the action configuration panel. For more information, see Add an action to the workflow.
- Select the Generation type of the document.
-
Configure the Document templates section to edit the template and corresponding Output file name.
- Specify a File variable. Select a file variable from the workflow or add a file variable.
- Select the Generation order for the template. The generation order is the sequence in which to include this template in the generated output.
- Click Output.
- Specify the Output file name.
- To add repeating data, see Add and configure the Generate document action.
- In the Options section, specify the variable where the generated document is stored.
- Add an action to the workflow, depending on where you want to send the generated document or documents. For example, as a file attachment in the Send an email action.
For more information on the fields and buttons, see Generate document fields, buttons, and settings.
Add multiple templates for document generation
You can add multiple templates for document generation and configure the Generate document action to either combine all the templates into one generated document (single PDF) or output separate generated documents (either multiple PDFs or the original file types).
- Add an action that can retrieve the template you created, such as Google Drive - Get a file.
- Configure the action and specify the output.
-
Add the Generate document action to the workflow and open the action configuration panel. For more information, see Add an action to the workflow.
- Select the Generation type of the document.
- If there are no existing templates, configure the Document templates section to edit the template and corresponding Output file name.
- For any template you want to add:
- Click Add template.
- Specify a File variable. Select a file variable from the workflow or add a file variable.
- Select the Generation order for the template. The generation order is the sequence in which to include this template in the generated output.
- Select the Merge type to use for this template and the previous template.
-
For each generated document (determined by Merge type):
- Click Output.
- Specify the Output file name.
- To add repeating data, see Add and configure the Generate document action.
- In the Options section, specify the variable where the generated document is stored.
- Add an action to the workflow, depending on where you want to send the generated document or documents. For example, as a file attachment in the Send an email action.
For more information on the fields and buttons, see Generate document fields, buttons, and settings.
Add conditions for template usage
You can conditionally include a template. For example, include a terms and conditions template only if the customer is based in a certain region and the start date is for the upcoming year.
- Click your Generate document action.
- Under Document templates, click a configured template.
- Under Include based on condition, click Add condition.
-
Fill in the condition fields:
- Select or Add variable for When.
- Select an Operator.
- Type a value or select or Add variable for Value.
- Click Add condition to save the new condition.
- For each additional condition you want to add:
- Click Add condition.
Fill in the condition fields:
- Select or Add variable for When.
- Select an Operator.
- Type a value or select or Add variable for Value.
- Click Add condition to save the new condition.
- Select any or all to determine how to evaluate the set of conditions.
For more information on the fields and buttons, see Generate document fields, buttons, and settings.
Add images for document generation
You can add images to the Generate document action to add them to your documents, either in their original size, or resized. The images you add to the configuration become available as image tags for use with your document templates just like variable tags. See Add and configure the Generate document action for more information.
In the Designer page:
- Click a Generate documentaction.
- Click Images.
- Click Add image.
- Type the Image name.
-
Select a file, file path, or URL for Image source.
- File: select an image file in the Image location field.
- File variable: select a file variable from the workflow or add a file variable in the File variable field.
- URL: type a URL to the image in the Image URL field.
For more information on the fields and buttons, see Generate document fields, buttons, and settings.
Store licensing usage
You can choose whether or not to store usage of Document Generation licensing. If you store usage, you can record the usage in your workflow instance for visibility using the Log to instance details action, or use it later in workflow, such as in an email notification.
- Click your Generate document action.
- Select an option for Store usage message.
For more information on the fields and buttons, see Generate document fields, buttons, and settings.
Generate document fields, buttons, and settings
Section |
Field/button |
Description |
Variables |
||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(unlabeled)
|
Open Nintex Document Tagger | Launches the Nintex Document Tagger for inserting variable tags into document templates. See Get tags for document templates. | (n/a) | ||||||||||||||||||||||||||||||||
Generation type |
This is the option for the number and types of documents that will be generated. You can choose one of the following options:
|
(n/a) |
|||||||||||||||||||||||||||||||||
Document templates |
(section labeling varies) |
Fields in the Edit template section:
The first template in a given merge chain determines the styles for the generated document. The merge type impacts the number of outputs for the selected generation type. Merge type values
Include based on conditions field descriptions
Fields in the Output section:
Add template: Displays configuration fields for a new template. |
File variable: File. Include based on condition: When: Text, Decimal, Integer, Boolean, DateTime Operator: (n/a) Value: Text, Decimal, Integer, Boolean, DateTime
|
||||||||||||||||||||||||||||||||
Repeating data | Add repeating data |
Adds repeating rows, table, or section of data from a collection into a document. When you add repeating data, a corresponding tag for each variable or object in the collection appears in the Nintex Document Tagger. |
(n/a) | ||||||||||||||||||||||||||||||||
Collection | Information, such as mailing addresses and phone numbers that are pulled from the file and displayed in the Nintex Document Tagger as a tag. | Collection | |||||||||||||||||||||||||||||||||
Repeat by |
Determines how data is displayed in the document. You can choose one of the following options:
|
(n/a) | |||||||||||||||||||||||||||||||||
Images
|
Add image | Opens the Edit image section with configuration fields for image tags. | (n/a) | ||||||||||||||||||||||||||||||||
Image name | Name of image tag as visible in the Nintex Document Tagger. | (n/a) | |||||||||||||||||||||||||||||||||
Image source |
Choose one of the following options.
|
File: (n/a) File variable: File URL: Text |
|||||||||||||||||||||||||||||||||
Options
|
Store all files | The variable where the generated documents are saved. | Collection | ||||||||||||||||||||||||||||||||
Store usage message |
The text variable to store the Document Generation quota usage at the time this action runs. To log usage to instance details (displayed on the Instance details page when the workflow runs), use this variable in the action Log to instance details. |
Text, Decimal, Integer, Boolean, DateTime, Collection |