ドキュメントを1つ生成 Power Automate
PDF4me ドキュメントを生成 シングル Word を結合し、 HTML、 または PDF テンプレート JSON または XML 内部のデータ Power Automate フローを生成し、パーソナライズされた PDFWord、Excel、または HTML ファイルを1つのアクションで処理します。複数ステップの作業を置き換えます。 Microsoft 365 単一の設定可能なステップでメールマージフローを実行します。任意のテンプレートファイルをマッピングします。 Microsoft 365 ストレージアクション(SharePoint、 OneDriveデータバース、 Outlook 添付ファイル)、動的コンテンツまたはマップされたファイルからデータを提供し、生成されたデータをパイプします ファイルの内容 ファイルの作成、メールの送信、またはその他の後続アクションに直接実行します。
認証 API リクエスト
の PDF4me コネクタを接続します Power Automate 有効な 繋がり あなたの PDF4me API キー。フロー設計時に一度接続を作成し、その後は PDF4me テナント内のアクションがそれを再利用します。
見逃してはならない重要な事実
{{顧客名}}。ファイルの内容 動的コンテンツ フィールド。直接渡します。 SharePoint ファイルを作成し、 Outlook 添付ファイル付きのメールを送信します。 OneDrive ファイルの作成、Dataverse で新しい行の追加、または Teams でファイル付きのメッセージの投稿。.webp)
ドキュメント生成シングルアクション Power Automate フロー。テンプレート ファイル タイプ、出力タイプ、テンプレート名、テンプレート、ドキュメント データ タイプ、およびドキュメント データ テキスト (またはドキュメント データ ファイル) は、一般的な Word からPDF 走る。
パラメータ
必須: テンプレートファイルの種類、出力の種類、テンプレート名、テンプレート、ドキュメントのデータ型。 条件付き: 文書データテキストまたは文書データファイル(どちらか一方にデータペイロードが含まれている必要があります)。 オプション: メタデータJSON。
| パラメータ | 必須 | その機能 | 例 |
|---|---|---|---|
| Template File Type | Required | Type of the template and the syntax its placeholders use. Options: Docx (PDF4me Template Syntax), Html (Handlebars Syntax), Pdf Form, Docx (Mail Merge), Google Docs. Defaults to `Docx (PDF4me Template Syntax)`. | Docx (PDF4me Template Syntax) |
| Template File Name | Required | Name of the template file, including its extension (for example `invoice-template.docx`). | invoice-template.docx |
| Template File Data | Required | Content of the template file. Map it from the file content returned by a previous action. | @{body('Get_file_content')?['$content']} |
| Document Data Type | Required | Format of the data: Json or XML. Options: Json, XML. Defaults to `Json`. | Json |
| Document Data File | Optional | Content of a file with the data to fill the template with, in the format chosen in Document Data Type. | @{body('Get_file_content')?['$content']} |
| Document Data Text | Optional | Data to fill the template with, as JSON or XML text. Required only if Document Data File is not mapped. | your value |
| Field Metadata | Optional | Metadata for fields in JSON format. | your value |
| Output Type | Required | Format of the generated document. Options: PDF, Docx, Html. Defaults to `Docx`. | Docx |
| Keep Pdf template Editable | Optional | If Yes, the form fields of a PDF template stay editable after they are filled with data. Default: No. Defaults to `No`. | No |
テンプレートファイルタイプのオプション
PDF4me Wordテンプレート口ひげのプレースホルダー付き.docxファイル{{顧客名}}ループ、条件分岐、表、インライン画像などに対応。Wordで作成する請求書、契約書、証明書、手紙などに最適です。PDF4me HTMLテンプレートインラインCSSを含む.htmlPDF4me PDFテンプレート入力可能 PDF フォームフィールドの置換出力タイプのオプション
PDFPrint-ready locked layoutWordEditable .docx outputExcelSpreadsheet .xlsx outputHTMLWeb-ready HTML出力
このアクションは動的コンテンツのバンドルを1つ返します。生成されたファイルは次の場所にあります。 ファイルの内容下流へ送る準備が整いました Microsoft 365 行動。
| 分野 | タイプ | 内容物 |
|---|---|---|
File Content | File content | Content of the generated document. Map it into the next action, for example the File Content field of SharePoint or OneDrive Create file. |
File Name | Text | File name of the generated document, as returned by PDF4me. Use it as the file name when saving the file. |
Page Count | Text | Page count reported by PDF4me for the processed document. Returned as text; wrap it in int() to use it as a number. |
フローの例
Power Automateの一般的なワークフローパターンTypical ways to chain Generate Document Single into a flow.
- SharePoint アイテムが作成または変更されると、請求書リスト上でトリガーが作動します。
- SharePoint ファイルコンテンツを取得すると、テンプレートライブラリから請求書のWordテンプレートが読み込まれます。
- リスト項目列を含む単一のマージテンプレートを生成する JSON出力タイプ PDF。
- Outlook 顧客へのメール送信時に、感謝のメッセージとともにファイルコンテンツを添付します。
- Microsoft Formsでは、新しい回答が送信されると、コース完了のトリガーが作動します。
- OneDrive ファイルコンテンツを取得すると、証明書のWordテンプレートが読み込まれます。
- ドキュメントを生成 シングルは証明書を次のようにレンダリングします PDF Formsの応答を JSON。
- SharePoint ファイルの作成は証明書を証明書ドキュメントライブラリに保存し、 Outlook メールを送ると、それが学生に届きます。
- Dataverse は、取引に行が追加されると、成約済みの商談に対してトリガーを発生させます。
- SharePoint ファイルコンテンツを取得すると、契約テンプレートが読み込まれます。
- ドキュメントシングルを生成すると契約書が作成されます PDF 取引データから。
- Teams 承認ルート付きの適応型カードを投稿します。コンテンツを法的所有者に送って承認を得ます。