Extract Worksheets from Excel using Zapier
PDF4me Extract Worksheets from Excel is a Zapier action that exports one or more worksheets from an Excel workbook as structured JSON, keyed by sheet name. Select worksheets by name, by index, or leave both empty to extract every sheet. Returns a Base64-encoded JSON document ready for the next Zap step.
What this action does
Takes an Excel workbook from a previous Zap step, reads the worksheets you specify (or all of them), and converts each one to JSON using the first row as headers. The result is a single dictionary keyed by worksheet name, so a workbook with a Summary and a Sales sheet returns one JSON object with both keys. Useful for feeding multi-sheet reports into APIs, databases, or downstream automation steps that expect structured data instead of a spreadsheet file.
Authenticating Your API Request
To access the PDF4me Web API through Zapier, every request must include proper authentication credentials. Authentication ensures secure communication and validates your identity as an authorized user, enabling seamless integration between your Zapier workflows and PDF4me's Excel worksheet extraction services.
Important Facts You Should Not Miss
Use the + button next to File and File Name to map from earlier Zap steps, e.g., Full File Name from a previous PDF4me Excel action. The Excel file must provide full content, not "Exists but not shown" references.
If you see "File: (Exists but not shown)" in the File field and get "File is Empty" errors, select the option that provides the full file content instead. See Zapier & Power Automate Tips for details.

What Are the Key Features of Extract Worksheets?
- Complete Worksheet Extraction to JSON with automatic header detection
- Flexible Selection: extract by Worksheet Names, Worksheet Indexes, or both (union)
- Multi-Sheet Support extracts multiple worksheets in one operation
- Dictionary Output keyed by worksheet name for easy access
- 1-Based Indexing for Worksheet Indexes
Parameters
Complete list of parameters for the Extract Worksheets action. Parameter names match the Zapier configuration UI shown in the screenshot above.
- Map File (Excel) from your trigger or a previous step
- Optionally map File Name (e.g., Full File Name from previous step)
- Enter Worksheet Names and/or Worksheet Indexes, or leave both empty to extract every sheet
| Parameter | Required | What it does | Example |
|---|---|---|---|
| File | Required | Excel file to extract worksheets from. Map from a previous step. Must provide full file content. | [2. File from Step 2] |
| File Name | Conditional | Excel filename, used for output file identification. | add_header_sample_file.xlsx |
| Worksheet Names | Conditional | Comma-separated worksheet names to extract. Combines (union) with Worksheet Indexes if both are set. Empty with Indexes = all worksheets. | Sheet1, Sheet2 |
| Worksheet Indexes | Conditional | Comma-separated 1-based worksheet positions to extract. 1 = first worksheet. Combines with Worksheet Names. | 1,3 |
Extract every worksheet in the workbook
Leave both Worksheet Names and Worksheet Indexes empty to extract all worksheets in the workbook into the output dictionary.
Important: Only File is required. Use the + button next to each field to map data from previous steps. Worksheet indexes are 1-based (1 = first worksheet).
What Does Extract Worksheets Return?
The PDF4me Extract Worksheets from Excel action returns worksheet data as a Base64-encoded JSON document, not a downloadable file, for direct use in Zap logic.
| Field | Type | What it contains |
|---|---|---|
document | Base64 | JSON byte array. Decodes to a dictionary keyed by worksheet name, each value an array of row objects. |
FileName | String | Output filename assigned to the JSON payload, e.g. report.txt. |
Success | Boolean | Whether the extraction completed without error. |
- JSON
- Zap Integration
Example JSON response:
{
"document": "[Base64 JSON]",
"FileName": "report.txt",
"Success": true
}
Extracted JSON structure (decoded from document):
{
"Summary": [
{"Month": "January", "Revenue": 50000, "Expenses": 30000},
{"Month": "February", "Revenue": 55000, "Expenses": 32000}
],
"Sales": [
{"Product": "Widget A", "Quantity": 100, "Price": 10.50},
{"Product": "Widget B", "Quantity": 150, "Price": 15.75}
]
}
Use + to map the decoded document JSON to a Formatter step, a database write, or a direct API call in the next part of the Zap.
Typical Setups
Workflow ExamplesCommon Zapier workflow patterns using Extract Worksheets.
- A trigger fires when a consolidated report workbook lands in a Google Drive folder.
- PDF4me Extract Worksheets maps File and File Name, leaving Worksheet Names and Worksheet Indexes empty to extract every sheet as one JSON dictionary.
- A Formatter step decodes the Base64 document, then separate steps route each worksheet's data to its own destination API.
- A form-submission trigger captures which worksheets a client wants from a shared master workbook.
- PDF4me Extract Worksheets sets Worksheet Names to the requested sheet list (e.g., "Q1, Q2") so only those sheets are pulled.
- The decoded JSON is sanitized and delivered to the client portal or emailed as an attachment.
- A scheduled trigger runs on the last day of each month.
- PDF4me Extract Worksheets sets Worksheet Indexes to the known positions of the summary tabs (e.g., "1,2"), skipping detail sheets.
- The extracted JSON is written to a database or blob storage step for long-term retention.
Practical Tips
Cheat Sheet
| Field | Value |
|---|---|
| Action | Extract Worksheets |
| File | [Mapped from previous step] |
| File Name | add_header_sample_file.xlsx |
| Worksheet Names | Sheet1, Sheet2 (optional) |
| Worksheet Indexes | 1,3 (optional, 1-based) |
| Output format | Base64-encoded JSON dictionary |
Common Questions
Related Actions
Same Task on Other Platforms
Industry Use Cases & Applications
- IT & Integration
- Finance & Accounting
- Operations
- Education
- Multi-API Feeds: extract different worksheets to different system APIs automatically
- Data Warehouse Loading: load multi-sheet financial workbooks to data warehouse tables
- System Migration: extract complete Excel workbooks to JSON for migration to cloud systems
- Data Backup: archive multi-sheet operational workbooks as JSON for disaster recovery
- ETL Pipeline: extract worksheets as intermediate format in multi-step transformation pipelines
- Period Close: extract monthly P&L, balance sheet, and cash flow worksheets to financial systems
- Consolidation Export: extract entity-level worksheets from consolidation workbooks for GL posting
- Budget Distribution: extract department budget worksheets and distribute to respective systems
- Audit File Archival: extract complete audit workbooks to JSON for retention compliance
- Management Reporting: extract executive summary and detail worksheets for different stakeholder systems
- Multi-Site Data: extract site-specific worksheets from consolidated operational workbooks
- Dashboard Feeds: extract KPI worksheets from operational Excel to BI dashboard APIs
- Inventory Sync: extract warehouse inventory worksheets to WMS systems
- Production Reporting: extract shift worksheets from production workbooks to MES systems
- Quality Data: extract inspection worksheets by product line to QMS platforms
- Course Data Export: extract course enrollment worksheets from registrar workbooks to SIS
- Grade Distribution: extract grade worksheets by semester to learning management systems
- Student Records: extract student data worksheets for reporting to state education systems
- Financial Aid: extract aid worksheets from master workbooks to financial aid platforms
- Assessment Data: extract test score worksheets by subject for analytics platforms