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?

アレイ(配列)・オブジェクト型の変数への値の入れ方

Posted at

ごきげんよう、百合宮桜(Miyu)です。
Power Automate でアレイやオブジェクト型への値の入れ方を忘れがちなのでメモしておきます!(^^)!

アレイとオブジェクトの違い

表をイメージしてください。
アレイは表のデータ全部!
image.png

オブジェクトは表のレコード1つ1つのこと!
image.png

なので アレイ=複数のオブジェクトのまとまり ということです( *´艸`)
だから配列変数に追加アクションではオブジェクトを作って入れると配列(アレイ)ができる!というわけ✨

オブジェクトの作り方

ルールは以下の5つ

  1. {}で囲う
  2. 項目名は""(ダブルクォーテーション)で囲う
  3. 項目名と値の間は : (コロン)で区切る
  4. 値は ""(ダブルクォーテーション)で囲う
  5. 項目を複数個含めるときは , (カンマ)で区切る
{
    "項目名":"値",
    "項目名":"値"
}

なので以下のようなオブジェクトを作りたい時は

利用日 利用者
2025/05/02 テスト ユーザー
{
  "利用日": "2025/05/02",
  "利用者": "テスト ユーザー"
}

という形式で配列変数に追加アクションや変数の設定アクションに定義します。

image.png

値には動的なコンテンツを含めることもできますので、ぜひチャレンジしてくださいね。それではごきげんよう( *´艸`)

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?