Skip to main content

Mail Merge - Bulk Document Generator

PDF4me Mail Merge with Data String action generates multiple personalized documents from templates in Power Automate using structured data arrays. This powerful bulk document generation feature processes data from various collection sources, transforming dynamic data into Word or PDF documents through mail merge, supporting both array and object JSON structures for flexible data mapping across Microsoft 365 workflows.

Authenticating Your API Request

To access the PDF4me Web API through Power Automate, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Power Automate flows and PDF4me's powerful mail merge services.

Mail Merge with Data String Power Automate

Key Features

  • Bulk Document Generation: Create multiple documents from single template
  • Data List Processing: Process arrays of data for individual document generation
  • Template Support: Use Word (.docx) or PDF templates with merge fields
  • Flexible Data Formats: Support JSON array and object structures
  • Output Array: Receive all generated documents as processable array

Parameters

Complete list of parameters for the Mail Merge with Data String List of Docs action. Configure these parameters to control mail merge processing.

Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.

ParameterTypeDescriptionExample
Template File Data***BinaryTemplate File Content
• Map template file from source location
• Supports .docx and .pdf file formats only
• Template should contain merge fields
• Can be from SharePoint or OneDrive
[Template Content]
Template File Name***StringTemplate Name
• Template file name with proper extension
• Must be .docx or .pdf
• Used for processing identification
• Supports dynamic naming
LetterTemplate.docx
Data String***StringMerge Data Collection
• Dynamic data values for merging with template
• JSON array format: [["Field1","Field2"],["Value1","Value2"]]
• JSON object format: [{"Field1":"Value1"},{"Field2":"Value2"}]
• Each array item generates one document
[["Name","Email"],["John","[email protected]"]]

Output

The PDF4me Mail Merge with Data String List of Docs action returns comprehensive output data for seamless Power Automate flow integration:

Table View

Response data in a structured table format:

ParameterTypeDescription
Output DocumentsArray of ObjectsArray of generated documents, automatically iterable in flows
File ContentBinaryBinary content of each generated document
File NameStringFile name of each generated document

Workflow Examples

The PDF4me Mail Merge with Data String List of Docs action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:

Automated Personalized Customer Letter Generation

Transform customer communications with automated mail merge:

Complete Workflow Steps:

  1. Trigger: Marketing campaign approved for execution
  2. Get Customer List: Query CRM for target customer segment
  3. Format Data Array: Create JSON array with customer names and data
  4. Get Letter Template: Fetch letter template with merge fields
  5. Generate Letters: Create personalized letter for each customer
  6. Apply to Each: Process each generated letter
  7. Email Customer: Send personalized letter to each recipient
  8. Archive Letters: Store all generated letters in SharePoint

Business Benefits:

  • Generates 500+ personalized letters per campaign
  • Increases response rates by 45% with personalization
  • Eliminates manual letter creation
  • Reduces campaign launch time from 2 days to 2 hours

Industry Use Cases & Applications

Human Resources & Payroll Use Cases

  • Offer Letters: Generate personalized employment offers in bulk
  • Onboarding Documents: Create new hire paperwork for all employees
  • Performance Reviews: Generate review documents for all staff
  • Benefits Statements: Create personalized benefits summaries

Get Help