Mail Merge List of Docs in Make
Mail Merge With Data String List of Docs is a Make module by PDF4me that merges a Word or PDF template with a JSON array of records, generating one personalized document per array object. Use it for bulk contracts, invoices, or certificates. Output arrives as a zip of individual files or a single combined PDF.
This module will be deprecated soon. Migrate to Generate Documents Multiple for batch document generation with better performance, improved memory handling for large datasets, and expanded features.
Authenticating Your API Request
Every PDF4me module in Make requires a valid connection. Create or select one that holds your PDF4me API key so the scenario can authenticate batch document generation requests securely.
Important Facts You Should Not Miss

Set the Template File Type to Mail Merge so PDF4me merges each JSON record into the placeholder fields of your template.
What is Mail Merge List of Docs in Make?
Mail Merge List of Docs is Make's PDF4me module for generating many documents at once from a single template. It accepts a template file and a JSON array of records, then returns one merged document per record. Unlike merging records by hand in Word, this module scales to hundreds of documents inside an automated scenario with no manual steps.
Parameters
| Parameter | Required | What it does | Example |
|---|---|---|---|
| Connection | Required | PDF4me connection holding your API key. Click Add and paste your key from dev.pdf4me.com/dashboard if connecting for the first time. | My PDF4me connection |
| File | Required | Binary content of the Word or PDF template. Map it from a preceding download module such as Dropbox Download a File. | 1. Data |
| Merge Data | Required | JSON array of data records. Each object generates one document, and its key names must exactly match the placeholder names in the template. | [{"Name":"John","Co":"Acme"}] |
| Merge Output File | Optional | Controls the output format. Yes gives a single combined PDF of all documents. No, the default, gives a zip archive with one file per record. | No |
Output
| Field | Type | What it contains |
|---|---|---|
| Doc Data | Buffer | The generated output as a binary buffer. A zip archive of individual files when Merge Output File is No, or a single combined PDF when it is Yes. |
| File Name | String | Name of the output file, either a zip or a pdf. Map it into the File Name field of a downstream upload or email module. |
How does batch document generation work in Make?
The module reads your template once, then walks the Merge Data array and substitutes each record into the template placeholders to produce a document. When Merge Output File is No it packs the documents into a zip; when Yes it concatenates them into one PDF. Mail merge itself is a long-standing Microsoft Word feature, documented in the Microsoft Office help center. For scenario building patterns, see the Make help center.
Typical Setups
- Read a roster from Google Sheets with the Search Rows module.
- Aggregate the rows into a JSON array with the Array Aggregator.
- Pass the template to File and the array to Merge Data.
- Set Merge Output File to Yes for one combined PDF, then email it.
- Collect invoice records from an Airtable or Sheets source.
- Build the JSON array so each object matches the template placeholders.
- Leave Merge Output File as No to get a zip of one PDF per record.
- Add the Archive module to unzip, then upload each file to Drive.
- Trigger on a Custom Webhook that delivers a records array.
- Download the letter template from cloud storage.
- Run Mail Merge to produce the merged documents.
- Deliver the zip or combined PDF to the destination.
Practical Tips
Cheat Sheet
| Field | Value |
|---|---|
| Module | PDF4me > Mail Merge With Data String List of Docs |
| Status | Deprecated (prefer Generate Documents Multiple) |
| Connection | Your PDF4me connection |
| File | 1. Data (template binary) |
| Merge Data | [{"Name":"John","Co":"Acme"}] |
| Merge Output File | No (zip) or Yes (combined PDF) |
| Output | Doc Data + File Name |
| Credits | 1 per document generated |