メインコンテンツへスキップ

ワークシートを抽出する Excel 使用 Zapier

PDF4me ワークシートを抽出する Excel は Zapier 1 つ以上のワークシートをコピーするアクション Excel ワークブックを新しいものに Excel ファイル。ワークシートを名前、インデックスで選択するか、両方とも空欄にしてすべてのシートを抽出します。抽出されたワークブックのダウンロードリンクが返され、次の Zap ステップで使用できます。

このアクションが何をするか

取る Excel 前の Zap ステップのワークブックから、指定したワークシート (またはすべてのワークシート) を読み込み、それぞれを JSON 最初の行をヘッダーとして使用します。結果はワークシート名をキーとする単一の辞書になります。したがって、SummaryシートとSalesシートを含むワークブックは1つの辞書を返します。 JSON 両方のキーを持つオブジェクト。複数シートのレポートを APIスプレッドシートファイルではなく構造化データを必要とするデータベースや下流の自動化ステップ。

関連ブログ記事
この機能に関するブログ記事はまだありません。近日公開予定です。
その間、PDF4me ブログを閲覧して、あらゆるプラットフォームのチュートリアルやワークフローをご覧ください。
ブログをご覧ください →

認証 API リクエスト​

アクセスするには PDF4me ウェブ API を通して Zapierすべてのリクエストには適切な認証情報を含める必要があります。認証により安全な通信が保証され、承認されたユーザーとしての身元が検証され、シームレスな統合が可能になります。 Zapier ワークフローと PDF4meの Excel ワークシート抽出サービス。

見逃してはならない重要な事実​

ファイルのみ必須
ファイル名、ワークシート名、ワークシートインデックスはすべてオプションです。 Zapier 設定。すべての情報を抽出するには、ワークシートのフィールドを空欄のままにしてください。
名前とインデックスは結合するものであり、互いにフィルタリングするものではありません。
ワークシート名とワークシートインデックスの両方を設定すると、 PDF4me 両方の条件に一致するシートだけでなく、どちらかの条件に一致するすべてのシートを抽出します。
出力はワークシート名をキーとする辞書です。
抽出された各ワークシートは、解読されたキーになります。 JSONそのため、複数のシートを含むワークブックは、個別のファイルではなく、単一の回答として整理された状態を維持します。

:::ヒント:前の手順でマップファイルとファイル名を取得してください + 隣のボタン ファイル そして ファイル名 以前の Zap ステップからマッピングするには、たとえば、 ファイル名全体 以前の PDF4me Excel 行動。 Excelファイルには完全なコンテンツを提供する必要があり、「存在するが表示されない」参照は認められません。 :::

:::警告 ファイル: (存在しますが表示されません) ファイルフィールドに「ファイル: (存在しますが表示されません)」と表示され、「ファイルが空です」エラーが発生する場合は、 ファイルの内容全体 代わりに。参照 Zapier & Power Automate ヒント詳細は :::

PDF4me Excel ワークシート抽出 Zapier 設定 - ファイル、ファイル名、ワークシート名、ワークシートインデックス
設定する Excel ワークシートの抽出アクション:ファイルのみにアスタリスクが付きます。ファイル名とワークシート対象の2つのフィールドはオプションです。

抽出ワークシートの主な機能は何ですか?​

  • ワークシートの抽出を完了する に JSON 自動ヘッダー検出機能付き
  • 柔軟な選択ワークシート名、ワークシートインデックス、またはその両方(結合)で抽出します。
  • 複数枚シートのサポート 複数のワークシートを一度に抽出します
  • 辞書出力 ワークシート名でキー付けされているため、簡単にアクセスできます。
  • 1ベースのインデックス ワークシートインデックス用

パラメータ​

ワークシート抽出アクションのパラメーターの完全なリスト。パラメーター名は、 Zapier 構成 UI 上記のスクリーンショットに示されています。

クイックセットアップチェックリスト
  1. 地図 ファイル (Excel)トリガーまたは前のステップから
  2. オプションでマッピング ファイル名 (例:前の手順で取得したファイル名全体)
  3. 入力 ワークシート名 および/または ワークシート索引または、両方とも空欄にしてすべてのシートを抽出します。
パラメータ必須その機能例
FileRequiredExcel file to extract worksheets from. Map from a previous step. Must provide full file content.[2. File from Step 2]
File NameOptionalExcel filename, used for output file identification.add_header_sample_file.xlsx
Worksheet NamesOptionalComma-separated worksheet names to extract. Combines (union) with Worksheet Indexes if both are set. Empty with Indexes = all worksheets.Sheet1, Sheet2
Worksheet IndexesOptionalComma-separated 1-based worksheet positions to extract. 1 = first worksheet. Combines with Worksheet Names.1,3
File URL (Either provide a File or File URL)OptionalThe Excel workbook to extract the worksheets from. Map a file from a previous step. Provide either File or File URL. Note: Zapier labels this field File URL, the same as the next field.
ワークブック内のすべてのワークシートを抽出します。

両方とも残しておく ワークシート名 そして ワークシート索引 空にして抽出する すべてのワークシート ワークブック内のデータを出力辞書に格納します。

重要: のみ ファイル が必要です。 + 各フィールドの横にあるボタンをクリックすると、前の手順からのデータがマッピングされます。ワークシートのインデックスは1から始まります(1=最初のワークシート)。

「ワークシートの抽出」機能は何を返しますか?​

の PDF4me ワークシートを抽出する Excel アクションは新しいものを返します Excel 選択したワークシートのみを含むファイル(ダウンロードリンク付き)と、以下のファイルおよびジョブのメタデータ。

分野タイプ内容物
jobIdTextID of the PDF4me job that processed the request.
traceIdTextTrace ID of the request, when PDF4me returns one. Give it to PDF4me support when reporting a problem.
documentIdTextID PDF4me gives the resulting document.
File NameTextName of the resulting file, without extension.
File ExtensionTextExtension of the resulting file, for example `.pdf`.
Full File NameTextName of the resulting file, with extension.
File UrlTextDownload link of the resulting file. Map it into any later step that needs the file, for example an upload to Google Drive, Dropbox or OneDrive.
Alternate File UrlTextAlternative download link of the resulting file, with the file name at the end of the URL.
File SizeNumberSize of the resulting file, as reported by PDF4me.

例 JSON 応答:

{
"jobId": "9f1c2e7a-4b7d-4f2a-8c31-0d5b6e9a1f44",
"traceId": "4b7d2e18-9c3a-4f55-b0e2-7a1d8c6f3b02",
"documentId": "07386627-184a-44b2-a040-5ea2712a4bc5",
"File Name": "quarterly_report_sheets",
"File Extension": ".xlsx",
"Full File Name": "quarterly_report_sheets.xlsx",
"File Url": "https://api.pdf4me.com/Zapier/GetDocument/...",
"Alternate File Url": "https://api.pdf4me.com/Zapier/GetAltDocument/.../quarterly_report_sheets.xlsx",
"File Size": 18432
}

ファイルは ファイルURL は Excel 選択したワークシートのみを含むワークブック。ヘッダー、スタイル、数式はそのまま保持されます。

典型的な構成​

ワークフローの例Common Zapier workflow patterns using Extract Worksheets.
複数枚 API 分布
  1. 統合レポートのワークブックがGoogleドライブのフォルダに保存されると、トリガーが作動します。
  2. PDF4me ワークシート抽出はファイルとファイル名をマッピングし、ワークシート名とワークシートインデックスを空のままにして、すべてのシートを1つとして抽出します。 JSON 辞書。
  3. 抽出したワークブックをダウンロードし、各宛先にルーティングするためのファイルURLを個別のステップでマッピングします。 API。
クライアントのリクエストに応じた選択的エクスポート
  1. フォーム送信トリガーは、クライアントが共有マスターワークブックからどのワークシートを必要としているかを把握します。
  2. PDF4me 「ワークシートの抽出」機能は、「ワークシート名」を要求されたシートリスト(例:「Q1、Q2」)に設定し、それらのシートのみが抽出されるようにします。
  3. 解読された JSON データは匿名化され、クライアントポータルに配信されるか、添付ファイルとしてメールで送信されます。
特定のサマリータブをアーカイブする
  1. 毎月末日に、スケジュールされたトリガーが実行されます。
  2. PDF4me ワークシートの抽出機能は、詳細シートをスキップして、サマリータブの既知の位置(例:「1,2」)にワークシートインデックスを設定します。
  3. 抽出された JSON 長期保存のために、データベースまたはBLOBストレージに書き込まれる。

実践的なヒント​

File: (Exists but not shown) causes errors
Select the mapping option that provides the file's full binary content instead of a reference. See Zapier & Power Automate Tips for the exact steps.
Only File is required, everything else is optional
Leave Worksheet Names and Worksheet Indexes empty to extract every worksheet, there is no need to list sheet names if you want the whole workbook.
Names and Indexes combine, they do not filter each other
Setting both fields extracts the union of matching sheets, not the intersection. Use only one field if you want a strict match.
Worksheet Indexes start at 1, not 0
The first worksheet in the workbook is index 1. This trips up developers used to zero-based array indexing in other tools.
The output is a file, not inline worksheet data
The action returns File Url, a download link to an Excel file holding the selected worksheets. There is no field carrying the rows themselves.

チートシート​

分野価値
ActionExtract Worksheets
File[Mapped from previous step]
File Nameadd_header_sample_file.xlsx
Worksheet NamesSheet1, Sheet2 (optional)
Worksheet Indexes1,3 (optional, 1-based)
Output formatExcel file, returned as a download link

よくある質問​

How do I extract a specific worksheet from an Excel file in Zapier?+
Add the PDF4me Extract Worksheets action to a Zap, map File and File Name from a previous step using the full-content option, then enter the sheet name in Worksheet Names or its position in Worksheet Indexes. See Zapier's guide to working with files for how file fields pass between steps.
Can I extract all worksheets from a workbook at once?+
Yes. Leave both Worksheet Names and Worksheet Indexes empty and PDF4me extracts every worksheet in the workbook into a single JSON dictionary keyed by sheet name.
What format is the extracted worksheet data returned in?+
As an Excel file containing only the worksheets you selected. The action returns File Url, the download link of that file, along with File Name, Full File Name, File Extension and File Size.
Is File the only required field?+
Yes. In the Zapier configuration, only File is marked required. File Name, Worksheet Names, and Worksheet Indexes are all optional.
How does Worksheet Indexes numbering work?+
Worksheet Indexes uses 1-based numbering, so the first worksheet in the workbook is index 1, the second is index 2, and so on, different from zero-based indexing used in many programming languages.

関連アクション​

他のプラットフォームでの同じタスク​

業界におけるユースケースとアプリケーション​

  • マルチAPIフィード異なるワークシートを異なるシステムAPIに自動的に抽出する
  • データウェアハウスへのデータロード複数シートの財務ワークブックをデータウェアハウステーブルにロードする
  • システム移行Excelワークブック全体をJSON形式に抽出し、クラウドシステムへ移行する。
  • データバックアップ: 災害復旧のために、複数シートの運用ワークブックをJSON形式でアーカイブする
  • ETLパイプライン: 複数ステップの変換パイプラインでワークシートを中間フォーマットとして抽出する

ヘルプが必要な場合​