Skip to main content
Skip table of contents

Creating an Office template

Generating Office templates requires two separate templates, an Office Content template and an Office Output template. The Office Content template holds the document layout, static text and the content commands, while the Office Output template takes care of the data processing.

Start creating an Office Template in 3 easy steps:

Create an Office Output Template

Creating an Office Output Template

The Office Output template can be created by selecting the Office Output master template in the template builder.

image-20240806-080454.png

The Office Output template, allows users to set which Content template should be used. The supported formats are PPTX, DOCX and XLSX. The Content template is set via the Settings.

The template can be either loaded from Salesforce, using the corresponding ContentDocument ID, or from SharePoint using the SharePoint integration. The Output template will automatically detect the type of template added in the settings.

Loading the Office Content template from Salesforce
  1. Open the Settings in the Template Builder.

    image-20240806-080757.png

  2. Select the Office Template tab.

    image-20240806-080843.png

  3. Enter the Salesforce file ID of the desired Office template.

image-20240410-090149.png
Loading the Office Content template from SharePoint
  1. Open the Settings in the Template Builder.

    image-20240806-080757.png

  2. Select the Integrations tab.

    image-20240806-080954.png

  3. Enter your SharePoint information and enable Load template from SharePoint.
    For more information about the SharePoint integration, click here.

    image-20240806-081153.png

The Office Output template is also responsible for data processing. Any Salesforce data added to the Office Content template, must first be defined in the Office Output template.

To add Salesforce data:

  1. Open the Mappings document

    image-20241024-104838.png

  2. Navigate to the Data tab and add records, related lists, images, queries or clauses as needed.

    image-20241024-104935.png

Once the Office Output template is configured, the Office Content Template can be created.

Create an Office Content Template

Creating an Office Content Template
  1. Create or open an Office document. Note that Google Docs and online versions of Office documents will not work.

    image-20241024-100832.png

  2. Add the Documill Office Add-In

    image-20241024-101024.png

While Dynamo for Office is not required, it is highly suggested to use it.

  1. Add content and design your Office Content template

    image-20241024-101622.png

  1. Continue to the next section and configure the Office Add-In to add Salesforce data to the document.

Configure the Office Add-In

Office Add-In

In order to access your Salesforce data within the Office Content template, a link between the Office Output template and the Office Content template needs to be created in the Office Add-In. This will allow users to retrieve Salesforce data using the Add-In.

  1. In the Office Content Template, navigate to Dynamo for Office and select Document Properties. In the dynamoTemplate field, add the content document ID of the Office Output template being used.

    image-20241016-063525.png

  2. Click on Document Properties, add the Salesforce content document ID into field dynamoTemplate.

    5b14e27a-e9e4-436e-b0a7-54780f02ba36.png

  3. After linking the templates, a new Template tab will become accessible under Dynamo for Office. This tab will showcase the data that is available from the Office Output template.

    70b16bd7-f646-434e-bcc5-bb8eb39f5c0c.png

  4. The data that has been added to the Office Output template is now accessible from the Add-In and can be added to the Office Content template.

    image-20241016-143239.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.