0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Power Automate DesktopでDataTableに行を追加する(Power Fx有効化前提)

0
Last updated at Posted at 2026-03-23

概要

Power Fx有効化では、通常の「行をデータテーブルに挿入する」アクションを使用すると、値そのものではなく{Value:""} のような形式で挿入されてしまうことがあります。

そのため、DataTableにシンプルに値を追加したい場合は、「.NETスクリプト実行」アクションを利用します。

実装方法

「.NET スクリプト実行」アクションを使用し、言語には「VB.NET」を指定します。
本実装では、以下を行います。

Dim newRow As System.Data.DataRow = dtInput.NewRow()

newRow(0) = InText1
newRow(1) = InText2
newRow(2) = InText3

dtInput.Rows.Add(newRow)

スクリプトパラメーター設定

以下のように 入力値(In)と出力値(Out)を設定します。

入力値(In)

  • dtInput
    行追加するデータテーブル(DataTable)

  • InText1
    1列目に挿入する値

  • InText2
    2列目に挿入する値

  • InText3
    3列目に挿入する値

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?