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

Google Docs テンプレート Power Automate

の Google Docs 家族 は Power Automate ドキュメントを生成する単一のオプションは、設計されたテンプレートを使用します Google Docs そして輸出された .docxそのファイルをGenerate Document Singleにマッピングし、それをマージします。 JSON または XML データを取得し、パーソナライズされた PDF または Word ファイルに戻る。チームがテンプレートを作成するときにこれを選択します。 Google Docs それよりも Microsoft Word。

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

始める前に​

Google Docs エクスポートされた形式 .docx
テンプレートをデザインする Google Docsプレースホルダーを追加してから、ダウンロードします Microsoft Word (.docxサンプル google-docs-template.docx 既にエクスポート済みで準備完了です。
一致するデータファイル
使用 google-docs-data.json (推奨)、 test.xml、 または テスト.csvテンプレート内のプレースホルダー名はデータキーと一致しています。
PDF4me 接続 Power Automate
作成する PDF4me 接続 Power Automate そしてあなたの API キー。同じキーがすべての場所で機能します PDF4me テナントに対するアクション。

サンプルファイルパック​

以下のファイルをダウンロードしてください。 Google Docs テンプレートと一致するデータ JSON、 XML、 そして CSV. 地図 .docx から SharePoint、 OneDrive、 または Dropbox ドキュメントを1つ生成します。

PDF4me による文書生成 Word シングルアクション (Power Automate)。テンプレート ファイルタイプは Docx、テンプレート ファイル名は linq-template.docx、テンプレート ファイル データは Dropbox ファイル コンテンツからマッピング、文書データタイプは JSON、文書データ テキストにはサンプル JSON が含まれます。

ターゲット構成 Google Docs エクスポート: マップ .docx 下 テンプレートファイルデータ、 セット テンプレートファイルの種類 に Docx貼り付け JSON の中へ Document Data 文章。

何が Google Docs テンプレート Power Automate?​

の Google Docs family を使用すると、テンプレートを作成できます Google Docsエクスポートして .docxそれをデータとマージします Power Automate フロー。エクスポートされたファイルは .docxそれは、 Word テンプレートエンジンで、次のような口ひげスタイルのプレースホルダーをサポートしています。 {{名前}}これは、以下のことを好むチームにとって最もシンプルな選択肢です。 Google Workspace 以上 Microsoft Word テンプレートデザイン用。

設定方法は? Google Docs テンプレート Power Automate?​

アクションフィールドを以下のように設定します。 ドキュメントを生成 単一マップはエクスポートされます .docx 前の「ファイルの取得」ステップから。 PDF4me アカウントを使用する テンプレートを使用してドキュメントを生成する その代わり。

パラメータ必須その機能例
ConnectionRequiredPDF4me connection for the flow. Create one with your API key, then reuse it across every PDF4me action.My PDF4me connection
Template File TypeRequiredFormat of the template file. A Google Docs export is a .docx, so choose PDF4me Word Template (Docx).PDF4me Word Template
Output TypeRequiredFormat of the generated document. PDF for a locked layout, or Word for an editable .docx.PDF
Template NameRequiredFilename of the exported template including the .docx extension. Map from the prior Get file step.google-docs-template.docx
TemplateRequiredBinary content of the Google Docs export. Map File Content from SharePoint, OneDrive, or Dropbox Get file content.File Content
Document DataTypeRequiredFormat of the data payload. Json maps cleanly from SharePoint columns and Forms. Xml is for XML source systems.Json
Document Data TextConditionalInline data payload built from dynamic content. Required when Document Data File is empty.[{ "name": "Alice Johnson" }]
Document Data FileConditionalA JSON or XML data file mapped from a prior step. Required when Document Data Text is empty.1. Data
Meta Data JsonOptionalDocument metadata for fields in JSON format. Leave empty for most certificate and letter templates.{"title":"Certificate"}

以下のサンプルデータは、プレースホルダーと一致します。 google-docs-template.docx. 貼り付けて Document Data テキスト、またはファイルとしてアップロード Document Data ファイル。

[
{
"name": "Alice Johnson",
"course": "Intro to Automation",
"date": "2026-03-10",
"instructor": "Mr. Smith"
}
]

出力​

このアクションは、生成されたドキュメントを動的コンテンツとして返します。ファイルコンテンツを受け入れる下流のステップにマッピングしてください。

分野タイプ内容物
Doc DataBinaryThe merged document produced from the Google Docs export and your data. Map it into File Content of Create file (Dropbox, OneDrive, SharePoint) or into an Outlook attachment.
File NameStringOutput filename derived from Template Name. Combine it with an expression such as guid() when you want unique filenames per run.
Power Automate の Dropbox ファイル作成アクションで、フォルダー パスを pdf4meoutput に設定し、ファイル名を guid() と生成されたドキュメントから構築し、ファイル コンテンツを生成されたドキュメントにマッピングします。

結果の保存: 生成されたドキュメントをマッピングします File Content、そして使用する guid() で File Name 一意の出力名を指定するため。

生産パターン​

Googleドキュメントテンプレートでよく使われるPower AutomateのパターンReplace the manual test with these once the sample works.
証明書に対する回答フォーム
  1. Microsoft フォーム 新しい回答が送信されると、トリガーが作動します。
  2. ドキュメントを生成する シングルマップ Google Docs 証明書 .docx ファイルコンテンツを取得する。
  3. レスポンスフィールドは次のように渡されます JSON で Document Data 文章。
  4. ファイルを作成すると証明書が保存され、 Outlook メールを送れば届きます。
SharePoint 保存されたPDFのリスト
  1. SharePoint アイテムが作成されると、リスト上でトリガーが発動します。
  2. 「ドキュメントを1つ生成」機能は、リストの列をテンプレートにマージします。
  3. 生成されたドキュメントは動的コンテンツとして返されます。
  4. SharePoint ファイルを作成すると、ドキュメントライブラリに保存されます。
手動テスト Dropbox
  1. フローを手動でトリガーすると、実行が開始されます。
  2. インラインマップを含むドキュメント単一マップを生成する google-docs-template.docx JSON。
  3. GUID() ファイル名を使用して /pdf4meoutput にファイルを作成します。
  4. 確認が取れたら、手動トリガーを実銃トリガーに交換してください。

よくある質問​

How do I prepare a Google Docs template for Power Automate?+
Design the document in Google Docs, add placeholders, then use File, Download, Microsoft Word (.docx). Map that file into Generate Document Single from SharePoint, OneDrive, or Dropbox. If the template is already saved in your PDF4me account, use Generate Document Using Template instead.
Which Template File Type do I select for a Google Docs export?+
Set Template File Type to PDF4me Word Template. A Google Docs export is a .docx, so it merges through the Word template engine. Set Output Type to PDF or Word.
Can the action output PDF or Word from a Google Docs template?+
Yes. Set Output Type to PDF or Word on Generate Document Single. The exported Google Docs file is a .docx, so either output format is valid.
What data formats can I use with the Google Docs template?+
Set Document DataType to Json or Xml. Document Data Text takes an inline payload built from dynamic content, and Document Data File takes an uploaded JSON or XML file. The sample pack includes google-docs-data.json, test.xml, and test.csv.
Where does the generated file go in a Power Automate flow?+
The action returns Doc Data as dynamic content. Map it into a downstream step such as Create file (Dropbox, OneDrive, SharePoint) or Outlook Send an email with attachment. Use guid() in the File Name to keep each output unique.

関連ガイド​

基盤となるテンプレートエンジンについては、以下を参照してください。 仮定する Words のために .NET ドキュメント そして Power Automate 式のリファレンス。