Skip to main content

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.

Generate Documents Multiple Power Automate

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.

ParameterTypeDescriptionExample
Template File Type***OptionTemplate 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***StringTemplate 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***BinaryTemplate 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***OptionData 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***BinaryData 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 TextStringManual 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 DataStringAdditional 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***OptionGenerated 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 View

Response data in a structured table format:

ParameterTypeDescription
Output DocumentsArray of ObjectsArray containing all generated documents, automatically iterable in flows

Workflow Examples

The PDF4me Generate Documents Multiple action in Power Automate provides comprehensive workflow templates designed for real-world business scenarios:

Automated Monthly Payslip Bulk Generation Workflow

Transform your payroll operations with automated payslip creation for all employees:

Complete Workflow Steps:

  1. Trigger: Scheduled trigger on 28th of each month at 6 AM
  2. Get Employee Data: Query HR system for all active employees
  3. Get Salary Info: Retrieve salary, deductions, bonuses for each employee
  4. Format JSON Array: Create JSON array with data for each employee
  5. Get Payslip Template: Fetch company payslip Word template
  6. Generate Payslips: Create PDF payslips for all 500 employees
  7. Apply to Each: Iterate through generated payslip documents
  8. 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

Industry Use Cases & Applications

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

Get Help