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

テキストを置換 Power Automate

PDF4me テキストを置換 アクションにより、Word 文書内のテキストを検索して置換できます。 Power Automate 高度な書式設定オプションと包括的なテキストスタイル機能を備えています。この強力なテキスト置換機能は、複数の置換フレーズ、大文字小文字を区別するマッチング、単語全体のマッチング、正規表現、およびフォントプロパティ、色、テキスト効果、位置を完全に制御する詳細な書式設定制御をサポートしており、ドキュメントの自動化、テンプレート処理、コンテンツ管理ワークフローに最適です。 Microsoft 365。

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

認証 API リクエスト​

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

テキストを置き換える Power Automate

主な機能​

  • 複数のテキスト置換複数の検索置換操作を1つのアクションで実行する
  • 詳細検索オプション大文字小文字を区別するマッチング、単語全体のマッチング、および正規表現
  • 包括的な書式設定フォント、サイズ、色、テキスト効果を完全に制御可能
  • パターンマッチング: 複雑なテキストパターンを持つ正規表現のサポート
  • テキストのスタイル設定: 太字、斜体、下線、取り消し線、下付き文字、上付き文字
  • カラーコントロールテキストの色と背景色を複数のカラーフォーマットで設定可能
  • 逐次処理: 複数の交換品は指定された順序で処理されます
  • 柔軟なマッチング: 完全一致、部分一致、または単語全体の一致

パラメータ​

テキスト置換アクションのパラメータ一覧です。これらのパラメータを設定することで、テキスト置換の動作を制御できます。

ドキュメント入力パラメータ​

パラメータ必須その機能例
docContentRequiredContent of the Word document to process. Map it from the file content returned by a previous action, such as SharePoint or OneDrive Get file content.@{body('Get_file_content')?['$content']}
File NameRequiredName of the Word document, including its extension (for example `contract.docx`).contract.docx
Text ReplacementsRequiredReplacements to perform. Add one item per text to find and replace, or switch to input entire array to pass an array built earlier in the flow.your value
Search TextConditionalText to search for. Shown when Text Replacements is set.your value
Replacement TextConditionalText to replace with. Shown when Text Replacements is set.your value
Match CaseConditionalPerform case-sensitive search. Defaults to `No`. Shown when Text Replacements is set.No
Match Whole WordConditionalMatch whole words only. Defaults to `No`. Shown when Text Replacements is set.No
Use Regular ExpressionsConditionalIf Yes, Search Text is treated as a regular expression. Defaults to `No`. Shown when Text Replacements is set.No
Font NameConditionalFont name for the replacement text. Shown when Text Replacements is set.your value
Font ColorConditionalText color in hex format or colour name (e.g., "#FF0000" for red). Shown when Text Replacements is set.your value
Font SizeConditionalFont size in points. Shown when Text Replacements is set.0
Background ColorConditionalBackground color in hex format or colour name (e.g., "#FFFF00" for yellow). Shown when Text Replacements is set.your value
BoldConditionalApply bold formatting to replacement text. Shown when Text Replacements is set.No
ItalicConditionalApply italic formatting to replacement text. Shown when Text Replacements is set.No
UnderlineConditionalApply underline formatting to replacement text. Shown when Text Replacements is set.No
StrikethroughConditionalApply strikethrough formatting to replacement text. Shown when Text Replacements is set.No
Double StrikethroughConditionalApply double strikethrough formatting to replacement text. Shown when Text Replacements is set.No
SubscriptConditionalApply subscript formatting to replacement text. Shown when Text Replacements is set.No
SuperscriptConditionalApply superscript formatting to replacement text. Shown when Text Replacements is set.No
Word SpacingConditionalWord spacing in points (space between words). Shown when Text Replacements is set.0
Culture NameOptionalCulture name for localization.your value

テキスト置換配列の構造:

  • 各交換部品は指定された順序で順次処理されます
  • 同じ文書に対して複数の置換を実行できます。
  • 各置換項目には異なる書式設定オプションを設定できます
  • 検索テキストのすべての出現箇所が置換されます(単語全体一致を使用する場合を除く)。

出力​

の PDF4me テキストを置換 アクションは、シームレスな包括的な出力データを返します Power Automate フロー統合:

テーブルビュー

構造化された表形式の応答データ:

分野タイプ内容物
Processed File ContentFile contentContent of the Word document with the text replaced. Map it into the next action, for example the File Content field of SharePoint or OneDrive Create file. The response contains no file name, so name the file yourself, for example with the input file name.
SuccessYes/NoWhether the operation completed successfully
Error MessageTextError message if operation failed
Error DetailsArrayList of detailed error messages

よくあるエラーメッセージ​

エラーを理解し、トラブルシューティングを行うことで、スムーズなテキスト置換ワークフローを確保できます。

エラーメッセージ原因解決
「リクエストが空です」リクエストオブジェクトがnullです有効なリクエストオブジェクトを指定してください
「ドキュメントが空です」ドキュメントオブジェクトはnullです有効なWord文書を提供してください
「少なくとも1つのフレーズ置換が必要です」テキスト置換配列がnullまたは空です配列内に少なくとも1つの置換フレーズを指定してください
「フレーズ置換では、検索テキストを空にすることはできません」置換後の検索テキストが null または空です各置換箇所に検索する有効なテキストを指定してください。
「テキスト置換エラー」テキスト置換時の一般的な例外ドキュメントのフォーマットとパラメータを確認してください。エラー配列の例外の詳細を確認してください。
「バイト列からのドキュメント読み込みエラー」無効または破損したWord文書入力ドキュメントが有効なWordファイル(.docx)であることを確認してください。

ワークフローの例​

の PDF4me テキストを置換 アクション Power Automate 実際のビジネスシナリオに合わせて設計された包括的なワークフローテンプレートを提供します。

自動テンプレート処理ワークフロー

自動テンプレート処理で文書作成を効率化しましょう。

ワークフローの手順を完了する:

  1. トリガー: 処理準備完了のドキュメントテンプレート SharePoint
  2. テンプレートを取得テンプレートライブラリからWordテンプレートを取得します。
  3. 会社名を置き換えてください: "[COMPANY_NAME]"を"Acme Corporation"に置き換えてください。
  4. 日付を置き換える: "[DATE]"を現在の日付に置き換えてください
  5. 連絡先情報を置き換える: "[CONTACT_EMAIL]" を " に置き換えます[email protected]「
  6. 書式設定会社名に太字、日付に赤色を適用
  7. メール処理済みドキュメント: 処理済みの文書を関係者に送信する
  8. アーカイブテンプレート処理済みのドキュメントを「完了したテンプレート」フォルダに保存します。

ビジネス上のメリット:

  • 毎月200以上の文書テンプレートを自動的に処理します
  • プレースホルダーテキストを実際の会社情報に置き換えます
  • 一貫したフォーマットとブランディングを保証します
  • 手動テンプレート処理時間を95%削減

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

法律・専門サービスにおけるユースケース

  • 契約処理: プレースホルダーテキストをクライアント固有の情報に置き換えてください
  • 法律文書の自動化ケース番号、クライアント名、日付を更新する
  • テンプレートの標準化法律用語と書式を標準化する
  • クライアントとのコミュニケーション特定の顧客向けに法的文書をカスタマイズする

ヘルプが必要な場合​