Generate Documents Multiple in Power Automate
PDF4me Generate Documents Multiple action enables simultaneous bulk document creation in Power Automate using Word, HTML, or PDF templates with mustache syntax or merge fields. This powerful action processes JSON or XML data arrays to generate hundreds of personalized documents automatically, ideal for mass mailings, batch reports, and high-volume document workflows across Microsoft 365.
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 bulk document generation services.

Key Features
- Bulk Generation: Create hundreds of documents from single template in one action
- Multi-Template Support: Use Word, HTML, or PDF templates with merge fields
- Array Processing: Process JSON/XML arrays to generate personalized documents
- Flexible Output: Generate documents in PDF, Word, Excel, or HTML formats
- Parallel Processing: Handle high-volume document creation efficiently
Parameters
Complete list of parameters for the Generate Documents Multiple action. Configure these parameters to control bulk document generation.
Important: Parameters marked with an asterisk (***) are required and must be provided for the action to function correctly.
| Parameter | Type | Description | Example |
|---|---|---|---|
| Template File Type*** | Option | Template Format Selection • Word - DOCX templates with merge fields or mustache syntax • HTML - HTML templates with mustache placeholders • PDF - PDF templates with fillable form fields • Determines template processing method | Word |
| Template File Name*** | String | Template File Identifier • Specify file name with proper extension (.docx, .html, .pdf) • Used for processing and output naming convention • Must match Template File Type selection • Supports dynamic values from flow variables | InvoiceTemplate.docx |
| Template File Data*** | Binary | Template File Content • Map template file content from previous action • Retrieve from SharePoint, OneDrive, email attachments • Single template generates all output documents • Must be valid file matching Template File Type | [File Content from Get File] |
| Document Data Type*** | Option | Data Format Selection • JSON - JSON array with objects for each document • XML - XML structure with multiple record nodes • Must match format of provided data array • Determines data parsing and iteration method | JSON |
| Document Data File*** | Binary | Data Array File Content • Map data file containing JSON or XML array • Alternative to Document Data Text parameter • Each array element generates one document • Takes precedence over Document Data Text if both provided | [Data File from Get File] |
| Document Data Text | String | Manual Data Array Input • Manually enter JSON or XML array as text • Required only if Document Data File not mapped • Each array item creates one output document • Supports dynamic content from flow variables | [{"name":"John"},{"name":"Jane"}] |
| File Meta Data | String | Additional Field Configuration • Optional metadata in JSON format for advanced settings • Configure field formatting across all documents • Specify data transformation rules • Define conditional logic for fields | {"dateFormat":"DD/MM/YYYY"} |
| Output Type*** | Option | Generated Documents Format • PDF - Output all documents as PDF files • Word - Output all documents as Word DOCX files • Excel - Output all documents as Excel XLSX files • HTML - Output all documents as HTML web files | PDF |
Output
The PDF4me Generate Documents Multiple action returns comprehensive output data for seamless Power Automate flow integration:
- Table
- JSON
- Flow Integration
Table View
Response data in a structured table format:
| Parameter | Type | Description |
|---|---|---|
| Output Documents | Array of Objects | Array containing all generated documents, automatically iterable in flows |
JSON Response Format
{
"Output Documents": [
{
"File Name": "Document_001.pdf",
"File Content": "[Binary Content]"
},
{
"File Name": "Document_002.pdf",
"File Content": "[Binary Content]"
},
{
"File Name": "Document_003.pdf",
"File Content": "[Binary Content]"
}
]
}
Power Automate Flow Usage
Use generated documents array in subsequent actions:
- Apply to Each: Iterate through documents for individual processing
- Email Distribution: Send each document to respective recipients
- SharePoint Batch Upload: Save all documents to library automatically
- OneDrive Storage: Store documents in organized folder structure
- Teams Posting: Share documents across multiple Teams channels
- Zip Creation: Combine documents into downloadable archive
Workflow Examples
The PDF4me Generate Documents Multiple action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:
- Payslip Generation
- Mass Mailing
- Student Reports
- Tax Documents
Automated Monthly Payslip Bulk Generation Workflow
Transform your payroll operations with automated payslip creation for all employees:
Complete Workflow Steps:
- Trigger: Scheduled trigger on 28th of each month at 6 AM
- Get Employee Data: Query HR system for all active employees
- Get Salary Info: Retrieve salary, deductions, bonuses for each employee
- Format JSON Array: Create JSON array with data for each employee
- Get Payslip Template: Fetch company payslip Word template
- Generate Payslips: Create PDF payslips for all 500 employees
- Apply to Each: Iterate through generated payslip documents
- Email Employees: Send individual payslip to each employee's email
Business Benefits:
- Generates 500+ payslips monthly in under 5 minutes
- Eliminates 20 hours of manual payslip preparation monthly
- Ensures 100% accuracy with automated data population
- Delivers payslips on time every month without delays
Automated Marketing Campaign Letter Generation
Streamline your marketing campaigns with bulk personalized letter creation:
Complete Workflow Steps:
- Trigger: Marketing campaign approved in SharePoint list
- Get Campaign Template: Retrieve campaign letter HTML template
- Get Customer List: Query CRM for target customer segment (1000+ contacts)
- Prepare JSON: Format customer data as JSON array with name, preferences
- Generate Letters: Create personalized PDF letters for all customers
- Apply to Each: Process each generated letter document
- Email Customers: Send personalized letter to each customer
- Track Campaign: Log campaign delivery in marketing automation system
Business Benefits:
- Creates 1000+ personalized letters per campaign automatically
- Increases response rates by 45% with personalization
- Reduces campaign launch time from 2 days to 30 minutes
- Maintains brand consistency across all customer communications
Automated Student Report Card Bulk Generation
Optimize your educational reporting with automated report card creation for students:
Complete Workflow Steps:
- Trigger: Grading period ends - scheduled trigger quarterly
- Get Student List: Retrieve all enrolled students from student database
- Get Grade Data: Query grades, attendance, comments for each student
- Format Data Array: Create JSON array with complete data per student
- Get Report Template: Fetch school report card Word template
- Generate Reports: Create PDF report cards for all 800 students
- Apply to Each: Iterate through generated report documents
- Email Parents: Send report card to parent email addresses
Business Benefits:
- Generates 800+ report cards quarterly automatically
- Saves 30 hours of teacher administrative time per quarter
- Eliminates manual data entry errors in report cards
- Provides instant parent access to student performance
Automated Tax Document Bulk Generation Workflow
Enhance your tax compliance with automated tax document creation for all clients:
Complete Workflow Steps:
- Trigger: Tax year end - scheduled trigger on January 15th
- Get Client List: Retrieve all active clients from accounting system
- Get Tax Data: Query income, deductions, credits for each client
- Prepare JSON Array: Format tax data as JSON array per client
- Get Tax Template: Fetch tax summary PDF template
- Generate Tax Docs: Create tax summary documents for all clients
- Apply to Each: Process each generated tax document
- Email Clients: Send tax documents via secure email delivery
Business Benefits:
- Generates 2000+ tax documents annually in one automated run
- Reduces tax document preparation from 1 week to 1 hour
- Ensures regulatory compliance with standardized formatting
- Accelerates tax filing process for all clients
Industry Use Cases & Applications
- Human Resources & Payroll
- Education & Training
- Finance & Banking
- Marketing & Communications
Human Resources & Payroll Use Cases
- Payslips: Generate monthly salary slips for all employees
- Offer Letters: Create bulk offer letters for hiring campaigns
- Performance Reviews: Produce year-end review documents for staff
- Benefits Statements: Generate benefits summary for open enrollment
Education & Training Use Cases
- Report Cards: Create student progress reports for all learners
- Certificates: Generate course completion certificates in bulk
- Transcripts: Produce academic transcripts for graduating students
- Parent Letters: Create personalized parent communication letters
Finance & Banking Use Cases
- Account Statements: Generate monthly statements for all customers
- Tax Documents: Produce year-end tax forms for account holders
- Investment Reports: Create portfolio performance reports for clients
- Loan Documents: Generate loan agreements for approved applications
Marketing & Communications Use Cases
- Direct Mail: Create personalized marketing letters for campaigns
- Customer Notices: Generate service update notifications for clients
- Event Invitations: Produce personalized event invitation letters
- Renewal Notices: Create subscription renewal documents for customers