Salesforce Document Generation – Word and Excel Templates

Business Background

Easily configure Salesforce document generation with Titan Web.

Titan Solution

  • Configure Salesforce document generation by adding Microsoft Word and Microsoft Excel templates to a project.
  • For Word and Excel templates, you can do the following:
    • Preview
    • Download
    • Generate Interactive
    • Email
    • Edit
    • Push to Salesforce
  • Editing this uploaded template does not impact or alter the original document.

How to Video

Video Coming Soon!

How to Guide

Note:

Prerequisite:

A Word template must contain interactive Salesforce fields or fields from a Web project added with the Titan Word add-in.

An Excel template must contain interactive Salesforce fields added with the Titan Excel add-in.

  1. Drop a Word or Excel document in the block from your file explorer. The file is added to the screen.
  2. Alternatively, click in the block to upload a document. The standard Microsoft Open screen opens.
    • Browse to the file destination and click on the required file.
    • Click on the Open button. The file is added to the screen.
Uploaded template (Word and Excel examples)
Uploaded template (Word and Excel examples)
Note:

The uploaded Excel and Word documents will be fully dynamic.

  1. Do the following if necessary:
    • Click the X icon next to the document name to delete the document.
    • Click on the Download Template option to download the template.
    • Use the Drop document here block to replace the uploaded template.
      • You will see a confirmation message: “Please confirm: You are about to replace the template.”
      • Click the required button.
    • Click on the View Versions option to view the version of the template. The View Versions screen opens.
View Versions screen
View Versions screen
  1. Click the Next button on the Configure Project Document Generation Settings screen.
  2. Use the checkboxes to select option/s. The document in each option will be in DOCX or PDF format:
    • Preview: Preview a generated and populated document.
    • Download: Download a dynamic document.
    • Generate Interactive: Generate a document containing interactive fields that your end user can edit.
    • Email: Send the template as an email attachment.
    • Edit: Generate an editable document in DOCX or PDF format. The edited document can be pushed to Salesforce.
    • Push to Salesforce: Push a DOCX or PDF document to Salesforce in the desired output format.
  3. Click the Next button.
Configure Project Document Generation Settings screen
Configure Project Document Generation Settings screen
  1. Under General, change the label of the template if necessary. The document name is added by default.
  2. Use the drop-down list to add a Record ID. (This is either an input field or a custom variable that you added to the project.)
Note:

The options on the left of the screen under General depend on the options you selected on the previous screen.

You can add options:

  1. Click the + icon in front of Add Option.
  2. Click the + icon in front of an option to add it to the list.
Document Generation screen - General
Document Generation screen – General
  1. Configure the options that you selected:
  2. Change the captions if necessary.
  3. View where the template was used.

Preview

  1. Click the Preview option.
    1. Use the toggle switch to enable the Preview functionality.
    2. Use the drop-down list to select an output format:
      • docx
      • xlsx
      • pdf
    • Use the drop-down list to select a program to view the Word (docx) document.
      • Microsoft
      • Google
      • Titan (recommended)
        • Use the Zoom drop-down list to select an option.
          • Fit to device
          • Select a zoom percentage.
Document Generation screen - Preview Word
Document Generation screen – Preview Word
  1. Under the Preview option, do the following for Excel (xlsx) spreadsheets:
    1. Use the drop-down list and select the xlsx option.
Document Generation screen - Preview Excel
Document Generation screen – Preview Excel
  1. Under the Preview option, do the following for PDF documents.
    1. Use the drop-down list and select the pdf option.
    1. Use the drop-down list to select a program to convert the pdf document.
      • Libre Office
      • Office 365
      • Google
      • Titan (recommended)
        • Use the Zoom drop-down list to select an option.
          • Fit to device
          • Select a zoom percentage.
      • Titan 2
    2. For the Titan (recommended) option, use the checkbox to activate the PDF/A option if necessary. This is the ISO-standardized PDF.
    3. For the Titan (recommended) option, use the checkbox to activate the Bookmarks option if necessary. This is the navigation tool for documents.
    4. Use the drop-down list to select the option to view the document.
      • Microsoft
      • Google
      • Titan 1 (Recommended)
        • Use the Zoom drop-down list to select an option.
          • Fit to device
          • Select a zoom percentage.
      • Titan Mini
        • Use the Zoom drop-down list to select an option.
          • Fit to device
          • Select a zoom percentage.
Document Generation screen - Preview PDF
Document Generation screen – Preview PDF
  1. If necessary, do the following:
    1. Click the Add action option and add button text.
    2. Click the Configure Action button to configure an On Click Action.
    3. Click the checkbox to hide the download button.
    4. Click the checkbox to optimize the image quality for better performance.
      • This will reduce the image quality to 80% of the original and will therefore reduce the file size.
Document Generation screen - Preview
Document Generation screen – Preview

Download

  1. Click the Download option.
    1. Use the toggle switch to enable the Download functionality.
    2. Use the drop-down list to select an output format:
      • xlsx
      • docx
      • pdf
        • Use the drop-down list to select a program to convert the pdf document.
          • For the Titan (recommended) option, use the checkbox to activate the PDF/A option if necessary. This is the ISO-standardized PDF.
          • For the Titan (recommended) option, use the checkbox to activate the Bookmarks option if necessary. This is the navigation tool for documents.
    3. Use the toggle switch to add a dynamic file name if necessary.
      • The Custom Name field changes to a drop-down list where you can select the dynamic file name.
    4. Type a custom name.
    5. Use the toggle switch to enable the actions while waiting: Freeze the screen while the template is generating.
    6. Click the checkbox to optimize the image quality for better performance.
      • This will reduce the image quality to 80% of the original and will therefore reduce the file size.
    7. Use the toggle switch to enable the actions while waiting: Show a progress bar.
Document Generation screen - Download
Document Generation screen – Download

Interactive

  1. Click the Interactive option.
    1. Use the toggle switch to enable the Interactive functionality.
    2. Click the checkbox to optimize the image quality for better performance.
      • This will reduce the image quality to 80% of the original and will therefore reduce the file size.
    3. Use the toggle switch to enable the Zoom Settings.
      • Click the Gear icon to open the Document Generation Device Zoom screen.
        • Use the drop-down list to select general zoom options. This is the default option.
        • Click the Custom zoom radio button to configure the custom zoom options for desktop, laptop, tablet (L), tablet, mobile (L), and mobile (S).
    4. Use the toggle switches to enable the Interactive Viewer options:
      • Show Header
      • Show Footer
      • Show Toolbar
      • Show Next Step
      • Allow Print
    5. Use the toggle switches to enable the Ensure filled % option.
      • When this option is enabled, the signer will be required to make a signature larger than the percentage specified in the “Ensure Fill Value” field in the signature box.
      • This will prevent the signer from simply making a dot in the mandatory signature field.
        • Add a positive integer number in the Ensure Filled Value field. One or two percent is sufficient.
    6. Use the toggle switches to enable the Auto Clear Signature option.
      • The signature field will be cleared after the document was submitted.
    7. Use the toggle switches to enable the Configure Actions options:
      • On Submit Action
      • On Close Action
    8. Use the Gear icons to configure the actions:
Document Generation screen - Interactive
Document Generation screen – Interactive

Email

  1. Click the Email option.
    1. Use the toggle switch to enable the Email functionality.
    2. Use the drop-down list to select an output format:
      • xlsx
      • docx
      • pdf
        • Use the drop-down list to select the program to convert the document.
    3. Use the toggle switch to add a dynamic file name if necessary.
      • The Custom Name field changes to a drop-down list where you can select the dynamic file name.
    4. Type a custom name.
    5. Click the checkbox to optimize the image quality for better performance.
      • This will reduce the image quality to 80% of the original and will therefore reduce the file size.
Document Generation screen - Email
Document Generation screen – Email

Edit

  1. Click the Edit option.
    1. Use the toggle switch to enable the Edit functionality.
    2. Click the checkbox to optimize the image quality for better performance.
      • This will reduce the image quality to 80% of the original and will therefore reduce the file size.
    3. Use the toggle switches to enable the Configure Actions options:
    4. Use the Gear icons to configure the actions:
    5. If necessary, click the Add action option to configure another action you may need.
Document Generation screen - Edit
Document Generation screen – Edit

Push to Salesforce

  1. Click the Push to Salesforce option.
    1. Use the toggle switch to enable the Push to Salesforce functionality.
    2. Use the drop-down list to select an output format:
      • xlsx
      • docx
      • pdf
        • Use the drop-down list to select the program to convert the document.
    3. Use the toggle switch to add a dynamic file name if necessary.
      • The Custom Name field changes to a drop-down list where you can select the dynamic file name.
    4. Type a custom name.
    5. Click the checkbox to optimize the image quality for better performance.
      • This will reduce the image quality to 80% of the original and will therefore reduce the file size.
Document Generation screen - Push to Salesforce
Document Generation screen – Push to Salesforce
  1. Make sure that you configure the Salesforce Push.

Digital Signature

Note:

Make sure that you used the toggle switch to enable a Digital Signature, either under the Download or the Push to Salesforce option.

This image has an empty alt attribute; its file name is image-194.png

 

  1. Use the drop-down list to select an option.
    • Use Form Titan certificate
    • Use your certificate. If you select this option, the rest of the screen options are no longer shown.
  2. Use the toggle switch to show the signature.
  3. Use the drop-down list to select a position.
    • Left bottom
    • Right bottom
    • Left top
    • Right top
  4. Type the value for the padding in the X and Y fields.
  5. Type the value for the width and height in the fields.
  6. Use the drop-down list to select a reason.
    • Other. Add the reason in the field.
    • Variable (This is a variable that you added to the project.)
  7. Purchase more credits if needed.
Document Generation screen - Digital Signature
Document Generation screen – Digital Signature

Captions

  1. Click on the captions option to change any of the captions.
Captions
Captions

Where Used

  1. Click the Where Used option to view where the document generation is triggered.
Where used
Where used
  1. Click the Apply button. The Word or Excel template is added.
  2. Use the Edit icon to edit the template.
  3. Use the Kebab icon to do one of the following:
    • Turn Off
    • Delete
Template added
Template added

Add the Document Generation to an action flow

  1. Configure an On Click Action on an element.
  2. Click the + icon to add a node.
  3. Under User Interaction, select the Document Generation option and click the Next button.
  1. Use the drop-down lists to select the following:
    • Template
    • Action
  2. Click the Next button.
  3. Add a tag if necessary and click the Insert button.

If you are interested, check out our Salesforce document generation article for a comparison of the 10 best tools in the market.

Hidden Title

Need more help?