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?

PowerAutomate: Trigger/Actions の入力の使いまわし方

Last updated at Posted at 2024-05-21

背景

以前書いたつもりだったんだけど、分かりにくいなと反省し、New Designer での取得方法と、実際の取得例に特化して書き直し・・ :sweat:

概要

パターンが分かれば簡単

トリガーの場合

  • trigger().inputs.parameters.{取得したい項目}

New Designer なら、以下のように Code View で利用したい項目をコピペするだけ

image.png

アクションの場合

  • actions('{アクション名}')?.inputs.parameters.teamId.{取得したい項目}

body/recipient のような場合、parameters.body.recipient だとエラーになるので以下のようにする

actions('')?.inputs.parameters['body/recipient']

コピー用一覧

Triggers

対象 項目 コピペ用
Recurrence start time trigger().startTime
Sharepoint Site Address trigger().inputs.parameters.dataset
Sharepoint Library Name trigger().inputs.parameters.table
Teams Adaptive Card actions('')?.inputs.parameters.inputsAdaptiveCard

Actions

  • actions('{Action Name}')
    Action Name を入れて使う。
対象 項目 コピペ用
Sharepoint Site Address actions('')?.inputs.parameters.dataset
Sharepoint Library Name actions('')?.inputs.parameters.table
Teams Team actions('')?.inputs.parameters.teamId
Teams Recipient actions('')?.inputs.parameters['body/recipient']
Teams Parent Message ID actions('').inputs.parameters['body/parentMessageId']
Teams Message ID actions('').inputs.parameters['messageId']
Teams Team ID actions('').inputs.parameters['body/recipient/groupId']

詳細

若干変更があるかもだけど、基本は以下

記述の仕方は以下なんかも参考に

あとがき

コピーですぐ使えるようにしておくべきでしたね :sweat_smile:

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?