For admins and template authors: from v1.25, you can add a document template to a solution in four ways, so you start from the place that fits your content. This guide helps you choose one and add it. Expect 5–15 minutes, depending on how much you customize.

Before you begin

Choose a way to add the template

If you…Choose…What you get
Already have a formatted Word file (or, in Pro, a PDF form, PowerPoint or Excel file)Upload a documentYour file becomes a template immediately, ready for merge fields
Need a common business document, such as an invoice or a sales orderUse a pre-built templateA .docx template from the library that you customize
Want to build a Word template inside SalesforceStart from scratchA new .docx template built in the in-app Template Editor
Already built a suitable template for another button or use caseChoose existing templatesThe same template reused in this solution

Not sure? If you're evaluating Docs Made Easy, Quick Start creates a whole ready-made solution, not just a template.

Open the template options

  1. Open your solution in the wizard and go to the Add Template page.
  2. Click Add templates. Four options appear: Upload a document, Use a pre-built template, Start from scratch and Choose existing templates.

Add the template

Upload a document

  1. Select Upload a document.
  2. Add the merge fields to your file before you upload it. Use the Merge Field Helper to copy the syntax for each field. See Template syntax basics.
  3. Upload your file and save. The template is added to the solution.

Each template file can be at most 5 MB. Larger templates aren't allowed. Since v1.23.15, Docs Made Easy blocks corrupted files instead of creating an empty template record.

Use a pre-built template

The pre-built library is available in both Basic and Pro. It contains .docx templates for common objects and business needs, for example:

ObjectPre-built templates
AccountAccount Business, Onboarding, Welcome
CaseCase
OpportunityInvoice
OrderSales Order
  1. Select Use a pre-built template.
  2. Pick a template from the library.
  3. Customize the wording, layout and merge fields to fit your business, then save.

Start from scratch

  1. Select Start from scratch. The in-app Template Editor opens.
  2. Build the template, inserting fields with the Merge Field Helper. The editor also lets you set orientation, paper size and margins.
  3. Save the template.

The Template Editor creates and edits Word (.docx) templates only, so the output is Word or PDF. Opening an existing Word template for editing also opens the Template Editor. To change a PowerPoint or Excel template, edit the file before you upload it.

Choose existing templates

  1. Select Choose existing templates.
  2. Find the template in your org. You can show only the templates linked to the current solution, or all templates (added in v1.23.1).
  3. Select it and add it to the solution.

Verify it worked

  1. Check that the template is listed in the solution's Templates section.
  2. Open a record of the solution's object and click the solution's button.
  3. Download the document and check that each merge field shows the record's data, not blank space or raw {{…}} tags.

Troubleshooting

SymptomLikely causeFix
You see only the upload optionYour org runs a version older than v1.25, where templates are uploadedUpgrade. See the v1.25 release notes.
"Could not open the file. Please make sure it is a Word document (.docx)"The file is an older .doc or a renamed fileSave it as a real .docx (or, in Pro, .xlsx or .pptx). See DME-TPL-000.
"… merge is not allowed in this basic version"A PDF form, Excel or PowerPoint template on a Basic licenseUse a Word template or upgrade. See DME-LIC-002.
The file can't be uploaded, or "Document is too large to process"The template is over 5 MBCompress images or split the template. See DME-DOC-001.
Fields are blank in the generated documentA relationship is missing on Gather Data, or a field is misspelledSee Merge fields are blank or show tags.

Next steps