Merge multiple template files into a single output file

Available only with Enterprise Edition

You can merge Microsoft Word, Microsoft Excel, and Microsoft PowerPoint template files into a single output file using a DocGen Package. The value added when merging your original documents is the ability to make several documents optional, but still have them be included in a single document. This is most valuable when creating a Microsoft PowerPoint document.

Merge Microsoft Word documents

Merging your Microsoft Word files in a DocGen Package allows you to break out different sections of a document (Example: Sales Proposal) and make them optional. This provides users with more control over the content of a document; like whether or not to include Opportunity Line Items, terms and conditions and exhibits, all while returning the DocGen Package output in Microsoft Word format as opposed to a combined PDF file.

To merge Microsoft Word documents

  1. The first step to merging a set of MS Word documents is creating them on your computer.

  2. After you create your Microsoft Word documents, upload them into a public folder on Salesforce, and then drag them into the middle grid of your DocGen Package.

    For more information, see Adding template files to DocGen Packages

  3. Click the Options button (Gear shape) next to each document that you wish to merge. Documents merge from top to bottom and you do not have to set options on the first file. For example, if you load three documents and want to merge all of three into a single output, you would click Options for the middle and bottom documents.

    Tip: In Lightning, you have to click the play button each time you access the Select Files user interface.

  4. Once you are ready to test run your files, navigate to a record on the object your DocGen Package was based on and generate the documents. The output file created should include information from all three of the original template files.

Merge Microsoft Excel documents

You can merge Microsoft Excel templates in a DocGen Package

To merge Microsoft Excel documents

  1. The first step to merging a set of Microsoft Excel documents is creating them on your computer.

  2. After you create the Microsoft Excel documents, you upload them to a public folder in Salesforce, and then drag them into the middle grid of the DocGen Package.

    For more information, see Adding template files to DocGen Packages

  3. Click the Options button (Gear shape) next to each document that you wish to merge. Documents merge from top to bottom and you do not have to set options on the first file. For example, if you load three documents and want to merge all of three into a single output, you would click Options for the middle and bottom documents.

    Tip: In Lightning, you have to click the play button each time you access the Select Files user interface.

  4. When merging Microsoft Excel files, you can only select the merge with previous option. This option will insert all sheets in the selected Microsoft Excel file with all sheets in the previous file in the DocGen Package files grid.

  5. Once you are ready to test run your files, navigate to a record on the object your DocGen Package was based on, and generate the documents. The output file created should include information from all three of the original template files.

Merge Microsoft PowerPoint documents

You can merge Microsoft PowerPoint documents in a DocGen Package.

To merge Microsoft PowerPoint documents

  1. The first step to merging a set of MS PowerPoint documents is creating them on your computer.

  2. After you create the Microsoft PowerPoint documents, you upload them to a public folder in Salesforce, and then drag them into the middle grid of the DocGen Package.

    For more information, see Adding template files to DocGen Packages

  3. Click the Options button (Gear shape) next to each document that you wish to merge. Documents merge from top to bottom and you do not have to set options on the first file. For example, if you load three documents and want to merge all of three into a single output, you would click Options for the middle and bottom documents.

    Tip: In Lightning, you have to click the play button each time you access the Select Files user interface.

  4. When merging Microsoft PowerPoint files, you can only select the merge with previous option. This option will insert all sheets in the selected Microsoft PowerPoint file with all sheets in the previous file in the DocGen Package files grid.

  5. Once you are ready to test run your files, navigate to a record on the object your DocGen Package was based on, and generate the documents. The output file created should include information from all three of the original template files.

Related information

Adding template files to DocGen Packages