The Document Automation Wizard walks you through building your own document solution: a button on a Salesforce object, the data it gathers, a Word template, and output settings. This example creates a button on Account that generates a PDF.

Before you begin

Create the button and gather data

  1. Open the App Launcher in the top-left corner, search for Docs Made Easy, and open the app.

  2. Go to the Document Setup tab and click Launch Wizard. The wizard opens.

  3. Enter a name in the Button Name field, select the Salesforce object you want to generate documents from, and click Create. The Gather Data page opens.

    Wizard form with Button Name, object selection, and the Create button

  4. To include data from a related object, click Add Child. The Add Child window opens.

  5. Choose the related object, enter an alias for it, and click Save. The related object appears on the Gather Data page. Click Next. The Add Templates page opens.

    Add Child window where you select the object and enter an alias

Add your template

  1. On the Add Templates page, click Create New Document Template. An upload window opens. Click Merge Field Helper.

  2. Select the fields you want in your template, such as Account Number or Account Description. Click Copy to Clipboard to copy the merge field syntax, then paste it into your Word template.

    Merge Field Helper with Account fields selected and the Copy to Clipboard option

  3. To add fields from related objects, select Relationship Merge Fields, copy their syntax, and paste it into your Word template next to the other merge fields.

    Relationship Merge Fields tab listing fields from related objects

  4. When your template is complete, enter a template name, click Upload Files, and then click Save. The Assign Behaviors page opens.

Set the output behavior

  1. On the Assign Behaviors page, turn on background mode so that document generation runs in the background.

    Assign Behaviors page with the background mode option turned on

  2. Under Generated File, select PDF as the output format, click Save, and then click Next. You can choose a different format if you need one.

    Generated File section with PDF selected as the output format

Add the button to the page layout

  1. Click Go to Page Layouts. The Page Layouts list for Account opens. Click the layout you want to edit. The page layout editor opens.

  2. Find your custom button, drag it into the Salesforce Mobile and Lightning Experience Actions section, and click Save.

    Custom button dragged into the Salesforce Mobile and Lightning Experience Actions section

Generate the document

  1. Open the App Launcher, search for Accounts, and open any account record. Your custom button appears in the top-right corner of the page.

    Account record page with the new custom button in the top-right corner

  2. Click the button. Docs Made Easy generates the document and downloads it as a PDF.

Related: Generate your first document with Quick Start and Create a template with the Document Automation Wizard.