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

行を更新 Excel で Power Automate

PDF4me Excel - 行を更新する は Power Automate ワークブック内の既存のセルをその場で変更するアクション。 JSON プロパティ名を列ヘッダーに表示します。データベースの変更を同期したり、更新したりするのに使用します。 CRM レコード、またはステータス列の更新 Excel 行の挿入や削除を行わずにレポートを作成します。

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

PDF4me Excel - 行を更新する 書く JSON オブジェクトの配列を、開始行から始まる既存の行に挿入し、各プロパティ名を列ヘッダーに一致させます。数値と日付の変換、日付形式、数値形式、およびカルチャ名は、値の型と書式設定方法を制御します。行の挿入や削除は行われず、一致したセルのみが変更されます。

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

認証方法 Power Automate 流れ?​

毎 PDF4me アクション Power Automate 有効な接続が必要です。 PDF4me API フローが認証できるようにするためのキー Excel 行更新リクエストを安全に処理します。

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

これは行を更新するものであり、挿入するものではありません。
JSON更新データ内のオブジェクトは、開始行から始まる既存の行に順次適用されます。キーによる検索は行われません。行がまだ存在しない場合は、まず「行の追加」を使用してください。
データフィールドにはラベルが付けられています JSON データの更新
それは常に JSON 配列は、たとえ1行であっても必要です。配列の括弧がないオブジェクトは、「JsonData は配列である必要があります」というエラーを返します。
型変換にはトグルをオンにする必要があります
日付形式、数値形式、および文化名は、「数値と日付の変換」が有効になっている場合にのみ有効になります。無効にした場合、すべての値はプレーンテキストとして書き込まれます。
Power Automate PDF4me Excel - 行の更新アクションは、ファイルコンテンツ、ファイル名、ワークシート名 Sheet1、JSON 更新データ、開始行 20、開始列 1、および詳細パラメーターとして数値と日付の変換 Yes、日付形式 yyyy-MM-dd、数値形式 N2 で構成されています。

マップファイルの内容とファイル名を設定し、 JSON 「データの更新」と「開始行」を行い、次に「詳細パラメーター」を展開して、型の変換と書式設定を行います。

パラメータ​

必須: ファイルの内容、ファイル名、 JSON 更新データは必ず提供する必要があります。 JSON 更新データは JSON 配列の場合、裸のオブジェクトは拒否されます。

パラメータ必須その機能例
File ContentOptionalContent of the Excel file 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 NameOptionalName of the Excel file, including its extension (for example `report.xlsx`). Map it from the file name returned by a previous action. Defaults to `UpdateRows.xlsx`.report.xlsx
Worksheet NameOptionalName of the worksheet to update.your value
JSON Update DataOptionalNew row values, as JSON text. Written to the worksheet starting at Start Row and Start Column.your value
Start RowOptionalStarting row number for updates (1-based). Defaults to `1`.1
Start ColumnOptionalStarting column number for updates (1-based). Defaults to `1`.1
Convert Numeric And DateOptionalAutomatically convert numeric and date values. Defaults to `Yes`.Yes
Date FormatOptionalFormat pattern for date values. Defaults to `yyyy-MM-dd`.yyyy-MM-dd
Numeric FormatOptionalFormat pattern for numeric values. Defaults to `N2`.N2
Ignore Null ValuesOptionalSkip null values when updating. Defaults to `No`.No
Ignore Attribute TitlesOptionalIf Yes, the JSON property names are not written; only the values are updated. Defaults to `No`.No
Culture NameOptionalCulture name for data formatting.your value

出力フィールド​

分野タイプ内容物
Output File ContentFile contentContent of the Excel file with the rows updated. Map it into the next action, for example the File Content field of SharePoint or OneDrive Create file.
SuccessYes/NoWhether the operation completed successfully
Error MessageTextError message if operation failed
Error DetailsArrayList of detailed error messages

よくあるエラーメッセージの意味とは?​

エラーメッセージ原因解決
Request is emptyThe request object is null.Provide a valid request object.
Document is emptyFile Content is null or empty.Map a valid Excel document into File Content.
Invalid worksheet selectionThe named worksheet does not exist.Use an existing worksheet name or leave it blank for the first sheet.
No headers found in worksheetThe target row (or Start Row minus one) has no headers.Ensure the header row exists directly above the rows you are updating.
JsonData must be an arrayA bare single object was provided instead of an array.Wrap the object in array brackets, for example [{"Name":"John"}].

更新行を設定するにはどうすればいいですか Power Automate?​

  1. 追加 PDF4me → Excel - 行を更新する あなたの Power Automate 流れ。
  2. 地図 ファイルの内容 そして ファイル名 以前のアクションから(SharePoint、 OneDrive(またはデータベースコネクタ)。
  3. セット JSON更新データ へ JSON 更新するオブジェクトの配列。各行に1つずつ指定する。
  4. セット 開始行 更新する最初の行まで(ヘッダー行はスキップ) 開始列 ヘッダーオフセットの場合。
  5. 拡大する 詳細パラメータ 有効にする 数値と日付の変換 そして書式を設定します。フローを実行すると、更新されたワークブックが返されます。 書類。

典型的な構成​

ワークフローの例Common Power Automate flow patterns using Update Rows.
日々の在庫同期
  1. スケジュールされたトリガーがデータベースに問い合わせを行い、最新の在庫レベルを取得します。
  2. 結果は JSON 在庫シートの列ヘッダーに一致する配列。
  3. ファイルコンテンツを取得すると、マスターインベントリワークブックが取得されます。 SharePoint。
  4. 「行の更新」は、開始行2から始まる配列を適用し、整数値の在庫数に対して「数値と日付の変換」を有効にします。
  5. 更新された在庫ワークブックは、 SharePoint。
注文状況の更新
  1. 注文管理システムで注文ステータスが変更されると、フローがトリガーされます。
  2. このシナリオは JSON 影響を受ける行の更新されたステータスフィールドを含む配列。
  3. ファイルコンテンツを取得すると、注文追跡ログが取得されます。
  4. 「行の更新」では、「NULL値を無視する」を有効にして変更を適用するため、他の順序列は変更されません。
  5. 更新されたログは保存されます SharePoint。
CRM連絡先情報の更新
  1. 毎週のトリガークエリ Dynamics 過去7日間に変更された連絡先については365件。
  2. レコードは JSON 連絡先と最終更新日時のフィールドを含む配列。
  3. 「行の更新」では、大文字小文字を区別しないヘッダーマッチングのために「属性タイトルを無視」が有効になっている状態で変更が適用されます。
  4. 更新された連絡先リストはタイムスタンプ付きでアーカイブされます。

実践的なヒント​

This is not a lookup-and-match update
Rows are updated sequentially from Start Row, there is no key column matching. Sort or filter your JSON array to match the row order in the workbook before calling this action.
JSON Update Data must be an array, always
Even a single-row update needs array brackets: [{"Name":"John"}], not {"Name":"John"}. Omitting the brackets returns a JsonData must be an array error.
Start Row usually skips the header
Row 1 typically holds column headers, so most flows set Start Row to 2 or higher to begin updating actual data rows.
Culture Name affects parsing, not just display
Set Culture Name to match how your source data formats dates and decimals (for example de-DE for comma decimals), otherwise conversion can misread values.
Ignore Attribute Titles solves case-mismatch headaches
If your JSON property names differ in case from the Excel column headers, enable Ignore Attribute Titles instead of renaming every header or every JSON key.

チートシート​

分野価値
ActionExcel - Update Rows
Required fieldsFile Content, File Name, JSON Update Data (array)
Default start row1 (set to 2+ to skip headers)
Default start column1 (column A)
Type conversion toggleConvert Numeric And Date = true (default)
Default date/numeric formatyyyy-MM-dd / N2
OutputProcessed File Content + Success + Error Message + Error Details

よくある質問​

How do I update existing Excel rows in Power Automate?+
Add the PDF4me Excel - Update Rows action, map File Content and File Name from a prior action, set JSON Update Data to a JSON array of objects (one per row), and set Start Row to the first data row to update.
Does Update Rows insert new rows if a match is not found?+
No. Update Rows only modifies existing cells starting at Start Row, it does not insert or delete rows. Objects are applied sequentially to consecutive rows beginning at Start Row, there is no lookup-and-match against a key column.
Why must JSON Update Data be an array even for one row?+
The action always expects a JSON array of objects. A bare single object such as {"Name":"John"} returns a JsonData must be an array error, wrap it as [{"Name":"John"}] even when updating only one row.
How does automatic type conversion work?+
With Convert Numeric And Date enabled, JSON numbers become Excel numeric values formatted with Numeric Format, and date-like strings become Excel DateTime values formatted with Date Format. Culture Name controls how the incoming values are parsed before conversion. See <a href="https://learn.microsoft.com/en-us/dotnet/standard/base-types/standard-numeric-format-strings" target="_blank" rel="noopener noreferrer">Microsoft's numeric format string reference</a> for the supported format codes.
What happens to a JSON property that has no matching column header?+
It is ignored for that row. Only JSON properties whose names match an existing column header (case-sensitive unless Ignore Attribute Titles is enabled) are written to a cell. See the <a href="https://learn.microsoft.com/en-us/connectors/pdf4me/" target="_blank" rel="noopener noreferrer">PDF4me Power Automate connector reference</a> for the full action schema.

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

  • リード状況の更新Excelトラッキングシートでリードの適格性ステータスを更新します。
  • キャンペーン指標分析プラットフォームからキャンペーンのパフォーマンス指標を更新する
  • 顧客記録CRMからExcelへ顧客連絡先情報を同期する
  • 販売ノルマExcelダッシュボードで月間売上目標と実績を更新する

関連アクション​

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

ヘルプが必要な場合​