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
- Docs Made Easy v1.25 or later. The four options were added in that release. See the v1.25 release notes.
- A document solution to add the template to, with the data you need set up on Gather Data. See Document Automation Wizard: every step explained.
- The right edition for your format. Basic uses Word (.docx) templates and generates Word or PDF output. PDF form, PowerPoint and Excel templates need Pro (DME-LIC-002). See Compare editions.
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 document | Your file becomes a template immediately, ready for merge fields |
| Need a common business document, such as an invoice or a sales order | Use a pre-built template | A .docx template from the library that you customize |
| Want to build a Word template inside Salesforce | Start from scratch | A new .docx template built in the in-app Template Editor |
| Already built a suitable template for another button or use case | Choose existing templates | The 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
- Open your solution in the wizard and go to the Add Template page.
- 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
- Select Upload a document.
- 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.
- 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:
| Object | Pre-built templates |
|---|---|
| Account | Account Business, Onboarding, Welcome |
| Case | Case |
| Opportunity | Invoice |
| Order | Sales Order |
- Select Use a pre-built template.
- Pick a template from the library.
- Customize the wording, layout and merge fields to fit your business, then save.
Start from scratch
- Select Start from scratch. The in-app Template Editor opens.
- Build the template, inserting fields with the Merge Field Helper. The editor also lets you set orientation, paper size and margins.
- 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
- Select Choose existing templates.
- 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).
- Select it and add it to the solution.
Verify it worked
- Check that the template is listed in the solution's Templates section.
- Open a record of the solution's object and click the solution's button.
- Download the document and check that each merge field shows the record's data, not blank space or raw
{{…}}tags.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
| You see only the upload option | Your org runs a version older than v1.25, where templates are uploaded | Upgrade. 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 file | Save 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 license | Use 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 MB | Compress images or split the template. See DME-DOC-001. |
| Fields are blank in the generated document | A relationship is missing on Gather Data, or a field is misspelled | See Merge fields are blank or show tags. |
Next steps
- Template syntax basics: merge fields, tables and formatting.
- Merge several templates into one document once the solution has more than one template.
- Generate your first document with the Document Automation Wizard to finish the solution and place its button.