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

1件の投稿 に「generate-document-single」というタグが付けられています

すべてのタグを表示

Power Automate の要求書テンプレート: PDF4me を使用して SharePoint のすべての準備完了案件に対して PDF レターを生成します

· 1分で読める
SEO and Content Writer

PDF4me ドキュメント生成 シングル これは、JSONデータをWordテンプレートにマージして完成したドキュメントを返すPower Automateアクションです。SharePointの法律案件リストを対象とすることで、準備完了とマークされた案件ごとに1つの要求書テンプレートをPDFレターに変換し、各レターをそれぞれの案件フォルダーに保存し、案件のステータスを更新します。

催告状のテンプレートを検索すると、まず最初に出てくるのは裁判所のセルフヘルプセンター、法律扶助サイト、書式ライブラリです。カリフォルニア州裁判所、WashingtonLawHelp、LawDepotはいずれも手紙の書き方を丁寧に説明しています。しかし、週に30通も送る法律事務所のやり方については、どれも触れていません。手紙を書くのは簡単ですが、その周りの事務作業は大変です。依頼人、相手方、金額を訴訟記録からコピーし、PDFを適切な案件フォルダに保存し、案件を完了済みとしてマークすることを忘れないようにしなければなりません。このフローでは、そうした事務作業を自動化し、文面は弁護士が管理するWord文書に残します。

流れの概要
1. Manually trigger a flow
Instant flow with no inputs. Run it whenever you want a batch.
2. Get items
Matters list, filtered to Status Ready for Demand Letter and ordered by Title.
3. Select
Maps each matter to the six fields the template uses.
4. Get file content
Reads DemandLetterTemplate.docx once, before the loop starts.
5. Initialize variable
DocIndex, Integer, 0. Counts the letters in this batch.
6. Apply to each
One pass per matter returned by Get items.
7. PDF - Generate Document (Single)
PDF4me PDF. Word template plus the matter as JSON, Output Type PDF.
8. Create file
Saves the letter as the matter ID into its own DemandLetters folder.
9. Update item
Sets Status to Demand Letter Generated so the matter never runs twice.
10. Increment variable
Adds one to DocIndex for every letter filed.
11. Send an email (V2)
One summary to the team with the batch count.

Power Automate を使用した SharePoint リストからの PDF 生成: Handlebars テンプレートと HTML から PDF への請求書ワークフロー

· 1分で読める
SEO and Content Writer

PDF4me ドキュメント生成 シングル これは、Handlebars HTMLテンプレートとJSONペイロードをレンダリングして完成したHTMLドキュメントを作成するPower Automateアクションです。このドキュメントは、ペアになっている「HTMLをPDFに変換」アクションによってA4サイズにページ分割されます。SharePointリストに新しい行が追加されるとフローが開始され、ComposeがJSONを組み立て、Dropboxが請求書番号にちなんだ名前の請求書PDFを保存します。プレミアムコネクタもコードも不要です。

どの財務チームもPower Automateで同じ壁にぶつかる。 ファイル変換 このアクションにはプレミアムライセンスが必要で、HTMLテンプレートには手を加えません。Adobe PDF Servicesには費用がかかります。Encodianにも費用がかかります。matthewdevaneyの人気の回避策はHTMLを完全にスキップし、Power Appsにロックします。以下のパターンは、SERPの上位10位の誰もエンドツーエンドで表示していないものです。SharePointリストの列セットがJSONペイロードになり、実際の ハンドルバーテンプレート ファイルの場所 /Shared Documents/また、無料プランのコネクタ料金では、2つのPDF4meアクションがレンダリングとページネーションを実行します。

Handlebarsテンプレートのレンダリング:PDF4meと代替サービスの比較​

Power Automateのアーキテクトが請求書PDF用のコネクタを選ぶ前に必ず行う比較:

Approach vs PDF4meハンドルバーの型取り?HTMLからPDFへのページネーションツール?コネクタ層注記
PDF4me(このブログ)はい、ドキュメントを1つ生成しますはい、HTMLをPDFに変換します標準2つの単機能アクション、プレミアムライセンスは不要
Adobe PDFサービスいいえはいプレミアムユーザーごとの料金体系、テンプレートエンジンなし、HTMLのみ
エンコーダーネイティブテンプレート機能なしはいプレミアム人気はあるが、呼び出しごとに料金が発生する
matthewdevaney Power Apps ルートWordテンプレートのみ該当なし標準HTMLを完全にスキップし、Power Appsのフロントエンドに限定します。
ネイティブ Convert FileいいえWord/Excelのみ対応、HTMLは不可プレミアムHTML請求書を全くレンダリングできません
流れの概要
1. When an item is created
SharePoint trigger on the Invoices list. Fires per new row, hands every column to the flow as dynamic content.
2. Compose
Builds one JSON payload from the row: invoice, customer, items[], totals, notes. The exact shape the Handlebars template expects.
3. Get file content using path
SharePoint /Shared Documents/invoice_template.html. The Handlebars template lives beside the data, versioned in the same site.
4. PDF - Generate Document (Single)
PDF4me action. Template File Type Html (Handlebars Syntax), Document Data Type Json, Output Type Html.
5. Convert HTML to PDF
PDF4me action. A4, portrait, scale 0.8, 40px margins, print backgrounds Yes.
6. Create file
Dropbox /. File Name Title.pdf, so INV-1005 is saved as INV-1005.pdf.